opensearch-ruby 4.0.0.pre.beta.1 → 4.0.0.pre.beta.3

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 (237) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/USER_GUIDE.md +23 -5
  4. data/lib/opensearch/api/actions/asynchronous_search/delete.rb +2 -4
  5. data/lib/opensearch/api/actions/asynchronous_search/get.rb +1 -1
  6. data/lib/opensearch/api/actions/asynchronous_search/search.rb +4 -4
  7. data/lib/opensearch/api/actions/asynchronous_search/stats.rb +1 -1
  8. data/lib/opensearch/api/actions/cat/aliases.rb +8 -8
  9. data/lib/opensearch/api/actions/cat/all_pit_segments.rb +7 -7
  10. data/lib/opensearch/api/actions/cat/allocation.rb +10 -10
  11. data/lib/opensearch/api/actions/cat/cluster_manager.rb +8 -8
  12. data/lib/opensearch/api/actions/cat/count.rb +6 -6
  13. data/lib/opensearch/api/actions/cat/fielddata.rb +7 -7
  14. data/lib/opensearch/api/actions/cat/health.rb +6 -6
  15. data/lib/opensearch/api/actions/cat/indices.rb +16 -16
  16. data/lib/opensearch/api/actions/cat/master.rb +8 -8
  17. data/lib/opensearch/api/actions/cat/nodeattrs.rb +8 -8
  18. data/lib/opensearch/api/actions/cat/nodes.rb +12 -12
  19. data/lib/opensearch/api/actions/cat/pending_tasks.rb +10 -10
  20. data/lib/opensearch/api/actions/cat/pit_segments.rb +7 -7
  21. data/lib/opensearch/api/actions/cat/plugins.rb +9 -9
  22. data/lib/opensearch/api/actions/cat/recovery.rb +10 -10
  23. data/lib/opensearch/api/actions/cat/repositories.rb +9 -9
  24. data/lib/opensearch/api/actions/cat/segment_replication.rb +19 -18
  25. data/lib/opensearch/api/actions/cat/segments.rb +8 -8
  26. data/lib/opensearch/api/actions/cat/shards.rb +11 -11
  27. data/lib/opensearch/api/actions/cat/snapshots.rb +10 -10
  28. data/lib/opensearch/api/actions/cat/tasks.rb +9 -9
  29. data/lib/opensearch/api/actions/cat/templates.rb +9 -9
  30. data/lib/opensearch/api/actions/cat/thread_pool.rb +9 -9
  31. data/lib/opensearch/api/actions/clear_scroll.rb +1 -3
  32. data/lib/opensearch/api/actions/cluster/allocation_explain.rb +4 -4
  33. data/lib/opensearch/api/actions/cluster/delete_component_template.rb +5 -7
  34. data/lib/opensearch/api/actions/cluster/delete_decommission_awareness.rb +2 -4
  35. data/lib/opensearch/api/actions/cluster/delete_voting_config_exclusions.rb +3 -5
  36. data/lib/opensearch/api/actions/cluster/delete_weighted_routing.rb +1 -3
  37. data/lib/opensearch/api/actions/cluster/exists_component_template.rb +4 -4
  38. data/lib/opensearch/api/actions/cluster/get_component_template.rb +6 -4
  39. data/lib/opensearch/api/actions/cluster/get_decommission_awareness.rb +2 -2
  40. data/lib/opensearch/api/actions/cluster/get_settings.rb +5 -5
  41. data/lib/opensearch/api/actions/cluster/get_weighted_routing.rb +1 -1
  42. data/lib/opensearch/api/actions/cluster/health.rb +14 -14
  43. data/lib/opensearch/api/actions/cluster/pending_tasks.rb +5 -5
  44. data/lib/opensearch/api/actions/cluster/post_voting_config_exclusions.rb +4 -4
  45. data/lib/opensearch/api/actions/cluster/put_component_template.rb +6 -6
  46. data/lib/opensearch/api/actions/cluster/put_decommission_awareness.rb +3 -3
  47. data/lib/opensearch/api/actions/cluster/put_settings.rb +5 -5
  48. data/lib/opensearch/api/actions/cluster/put_weighted_routing.rb +1 -1
  49. data/lib/opensearch/api/actions/cluster/reroute.rb +6 -6
  50. data/lib/opensearch/api/actions/cluster/state.rb +10 -10
  51. data/lib/opensearch/api/actions/cluster/stats.rb +5 -5
  52. data/lib/opensearch/api/actions/count.rb +1 -1
  53. data/lib/opensearch/api/actions/dangling_indices/delete_dangling_index.rb +1 -3
  54. data/lib/opensearch/api/actions/delete.rb +1 -3
  55. data/lib/opensearch/api/actions/delete_all_pits.rb +1 -3
  56. data/lib/opensearch/api/actions/delete_by_query.rb +2 -2
  57. data/lib/opensearch/api/actions/delete_by_query_rethrottle.rb +1 -1
  58. data/lib/opensearch/api/actions/delete_pit.rb +1 -3
  59. data/lib/opensearch/api/actions/delete_script.rb +1 -3
  60. data/lib/opensearch/api/actions/flow_framework/delete.rb +1 -3
  61. data/lib/opensearch/api/actions/indices/delete.rb +1 -3
  62. data/lib/opensearch/api/actions/indices/delete_alias.rb +1 -3
  63. data/lib/opensearch/api/actions/indices/delete_data_stream.rb +1 -3
  64. data/lib/opensearch/api/actions/indices/delete_index_template.rb +1 -3
  65. data/lib/opensearch/api/actions/indices/delete_template.rb +1 -3
  66. data/lib/opensearch/api/actions/indices/forcemerge.rb +1 -1
  67. data/lib/opensearch/api/actions/indices/put_template.rb +1 -1
  68. data/lib/opensearch/api/actions/indices/upgrade.rb +0 -1
  69. data/lib/opensearch/api/actions/ingest/delete_pipeline.rb +5 -7
  70. data/lib/opensearch/api/actions/ingest/get_pipeline.rb +3 -3
  71. data/lib/opensearch/api/actions/ingest/processor_grok.rb +2 -2
  72. data/lib/opensearch/api/actions/ingest/put_pipeline.rb +5 -5
  73. data/lib/opensearch/api/actions/ingest/simulate.rb +3 -3
  74. data/lib/opensearch/api/actions/ism/delete_policy.rb +1 -3
  75. data/lib/opensearch/api/actions/knn/delete_model.rb +1 -3
  76. data/lib/opensearch/api/actions/ltr/stats.rb +41 -0
  77. data/lib/opensearch/api/actions/ml/chunk_model.rb +40 -0
  78. data/lib/opensearch/api/actions/ml/create_controller.rb +37 -0
  79. data/lib/opensearch/api/actions/ml/create_memory.rb +32 -0
  80. data/lib/opensearch/api/actions/ml/create_message.rb +37 -0
  81. data/lib/opensearch/api/actions/ml/create_model_meta.rb +32 -0
  82. data/lib/opensearch/api/actions/ml/delete_agent.rb +1 -3
  83. data/lib/opensearch/api/actions/ml/delete_connector.rb +1 -3
  84. data/lib/opensearch/api/actions/ml/delete_controller.rb +36 -0
  85. data/lib/opensearch/api/actions/ml/delete_memory.rb +36 -0
  86. data/lib/opensearch/api/actions/ml/delete_model.rb +1 -3
  87. data/lib/opensearch/api/actions/ml/delete_model_group.rb +1 -3
  88. data/lib/opensearch/api/actions/ml/delete_task.rb +1 -3
  89. data/lib/opensearch/api/actions/ml/execute_agent.rb +37 -0
  90. data/lib/opensearch/api/actions/ml/execute_algorithm.rb +37 -0
  91. data/lib/opensearch/api/actions/ml/get_agent.rb +36 -0
  92. data/lib/opensearch/api/actions/ml/get_all_memories.rb +38 -0
  93. data/lib/opensearch/api/actions/ml/get_all_messages.rb +43 -0
  94. data/lib/opensearch/api/actions/ml/get_all_tools.rb +31 -0
  95. data/lib/opensearch/api/actions/ml/get_connector.rb +36 -0
  96. data/lib/opensearch/api/actions/ml/get_controller.rb +36 -0
  97. data/lib/opensearch/api/actions/ml/get_memory.rb +36 -0
  98. data/lib/opensearch/api/actions/ml/get_message.rb +36 -0
  99. data/lib/opensearch/api/actions/ml/get_message_traces.rb +43 -0
  100. data/lib/opensearch/api/actions/ml/get_model.rb +36 -0
  101. data/lib/opensearch/api/actions/ml/get_profile.rb +32 -0
  102. data/lib/opensearch/api/actions/ml/get_profile_models.rb +35 -0
  103. data/lib/opensearch/api/actions/ml/get_profile_tasks.rb +35 -0
  104. data/lib/opensearch/api/actions/ml/get_stats.rb +36 -0
  105. data/lib/opensearch/api/actions/ml/get_tool.rb +36 -0
  106. data/lib/opensearch/api/actions/ml/load_model.rb +36 -0
  107. data/lib/opensearch/api/actions/ml/predict.rb +40 -0
  108. data/lib/opensearch/api/actions/ml/predict_model.rb +37 -0
  109. data/lib/opensearch/api/actions/ml/register_model_meta.rb +32 -0
  110. data/lib/opensearch/api/actions/ml/search_agents.rb +32 -0
  111. data/lib/opensearch/api/actions/ml/search_connectors.rb +32 -0
  112. data/lib/opensearch/api/actions/ml/search_memory.rb +32 -0
  113. data/lib/opensearch/api/actions/ml/search_message.rb +37 -0
  114. data/lib/opensearch/api/actions/ml/search_model_group.rb +32 -0
  115. data/lib/opensearch/api/actions/ml/search_models.rb +1 -1
  116. data/lib/opensearch/api/actions/ml/search_tasks.rb +32 -0
  117. data/lib/opensearch/api/actions/ml/train.rb +37 -0
  118. data/lib/opensearch/api/actions/ml/train_predict.rb +37 -0
  119. data/lib/opensearch/api/actions/ml/undeploy_model.rb +2 -3
  120. data/lib/opensearch/api/actions/ml/unload_model.rb +35 -0
  121. data/lib/opensearch/api/actions/ml/update_connector.rb +37 -0
  122. data/lib/opensearch/api/actions/ml/update_controller.rb +37 -0
  123. data/lib/opensearch/api/actions/ml/update_memory.rb +37 -0
  124. data/lib/opensearch/api/actions/ml/update_message.rb +37 -0
  125. data/lib/opensearch/api/actions/ml/update_model.rb +37 -0
  126. data/lib/opensearch/api/actions/ml/update_model_group.rb +37 -0
  127. data/lib/opensearch/api/actions/ml/upload_chunk.rb +40 -0
  128. data/lib/opensearch/api/actions/ml/upload_model.rb +32 -0
  129. data/lib/opensearch/api/actions/notifications/delete_config.rb +1 -3
  130. data/lib/opensearch/api/actions/notifications/delete_configs.rb +1 -3
  131. data/lib/opensearch/api/actions/observability/delete_object.rb +1 -3
  132. data/lib/opensearch/api/actions/observability/delete_objects.rb +1 -3
  133. data/lib/opensearch/api/actions/query/datasource_delete.rb +1 -3
  134. data/lib/opensearch/api/actions/reindex.rb +3 -1
  135. data/lib/opensearch/api/actions/reindex_rethrottle.rb +1 -1
  136. data/lib/opensearch/api/actions/replication/delete_replication_rule.rb +1 -3
  137. data/lib/opensearch/api/actions/rollups/delete.rb +1 -3
  138. data/lib/opensearch/api/actions/scroll.rb +1 -1
  139. data/lib/opensearch/api/actions/search_pipeline/delete.rb +1 -3
  140. data/lib/opensearch/api/actions/search_shards.rb +0 -1
  141. data/lib/opensearch/api/actions/security/authinfo.rb +3 -3
  142. data/lib/opensearch/api/actions/security/authtoken.rb +1 -1
  143. data/lib/opensearch/api/actions/security/config_upgrade_check.rb +1 -1
  144. data/lib/opensearch/api/actions/security/config_upgrade_perform.rb +1 -1
  145. data/lib/opensearch/api/actions/security/create_allowlist.rb +1 -1
  146. data/lib/opensearch/api/actions/security/create_role.rb +1 -1
  147. data/lib/opensearch/api/actions/security/create_role_mapping.rb +1 -1
  148. data/lib/opensearch/api/actions/security/create_tenant.rb +1 -1
  149. data/lib/opensearch/api/actions/security/create_update_tenancy_config.rb +1 -1
  150. data/lib/opensearch/api/actions/security/create_user.rb +1 -1
  151. data/lib/opensearch/api/actions/security/create_user_legacy.rb +1 -1
  152. data/lib/opensearch/api/actions/security/delete_action_group.rb +2 -4
  153. data/lib/opensearch/api/actions/security/delete_distinguished_name.rb +3 -5
  154. data/lib/opensearch/api/actions/security/delete_role.rb +2 -4
  155. data/lib/opensearch/api/actions/security/delete_role_mapping.rb +2 -4
  156. data/lib/opensearch/api/actions/security/delete_tenant.rb +2 -4
  157. data/lib/opensearch/api/actions/security/delete_user.rb +2 -4
  158. data/lib/opensearch/api/actions/security/delete_user_legacy.rb +1 -3
  159. data/lib/opensearch/api/actions/security/flush_cache.rb +2 -4
  160. data/lib/opensearch/api/actions/security/generate_obo_token.rb +1 -1
  161. data/lib/opensearch/api/actions/security/generate_user_token.rb +2 -2
  162. data/lib/opensearch/api/actions/security/generate_user_token_legacy.rb +1 -1
  163. data/lib/opensearch/api/actions/security/get_account_details.rb +1 -1
  164. data/lib/opensearch/api/actions/security/get_all_certificates.rb +2 -2
  165. data/lib/opensearch/api/actions/security/get_allowlist.rb +1 -1
  166. data/lib/opensearch/api/actions/security/get_configuration.rb +1 -1
  167. data/lib/opensearch/api/actions/security/get_dashboards_info.rb +1 -1
  168. data/lib/opensearch/api/actions/security/get_distinguished_name.rb +3 -3
  169. data/lib/opensearch/api/actions/security/get_distinguished_names.rb +2 -2
  170. data/lib/opensearch/api/actions/security/get_node_certificates.rb +4 -4
  171. data/lib/opensearch/api/actions/security/get_permissions_info.rb +1 -1
  172. data/lib/opensearch/api/actions/security/get_role.rb +1 -1
  173. data/lib/opensearch/api/actions/security/get_role_mapping.rb +2 -2
  174. data/lib/opensearch/api/actions/security/get_sslinfo.rb +2 -2
  175. data/lib/opensearch/api/actions/security/get_tenancy_config.rb +1 -1
  176. data/lib/opensearch/api/actions/security/get_tenant.rb +1 -1
  177. data/lib/opensearch/api/actions/security/get_user.rb +1 -1
  178. data/lib/opensearch/api/actions/security/health.rb +2 -2
  179. data/lib/opensearch/api/actions/security/migrate.rb +1 -1
  180. data/lib/opensearch/api/actions/security/patch_action_group.rb +1 -1
  181. data/lib/opensearch/api/actions/security/patch_action_groups.rb +1 -1
  182. data/lib/opensearch/api/actions/security/patch_allowlist.rb +1 -1
  183. data/lib/opensearch/api/actions/security/patch_audit_configuration.rb +1 -1
  184. data/lib/opensearch/api/actions/security/patch_configuration.rb +1 -1
  185. data/lib/opensearch/api/actions/security/patch_distinguished_name.rb +5 -5
  186. data/lib/opensearch/api/actions/security/patch_distinguished_names.rb +1 -1
  187. data/lib/opensearch/api/actions/security/patch_role.rb +1 -1
  188. data/lib/opensearch/api/actions/security/patch_role_mapping.rb +2 -2
  189. data/lib/opensearch/api/actions/security/patch_role_mappings.rb +1 -1
  190. data/lib/opensearch/api/actions/security/patch_tenant.rb +1 -1
  191. data/lib/opensearch/api/actions/security/patch_tenants.rb +1 -1
  192. data/lib/opensearch/api/actions/security/patch_user.rb +1 -1
  193. data/lib/opensearch/api/actions/security/patch_users.rb +1 -1
  194. data/lib/opensearch/api/actions/security/post_dashboards_info.rb +1 -1
  195. data/lib/opensearch/api/actions/security/reload_http_certificates.rb +1 -1
  196. data/lib/opensearch/api/actions/security/reload_transport_certificates.rb +1 -1
  197. data/lib/opensearch/api/actions/security/tenant_info.rb +1 -1
  198. data/lib/opensearch/api/actions/security/update_configuration.rb +1 -1
  199. data/lib/opensearch/api/actions/security/update_distinguished_name.rb +2 -2
  200. data/lib/opensearch/api/actions/security/validate.rb +1 -1
  201. data/lib/opensearch/api/actions/security/who_am_i.rb +1 -1
  202. data/lib/opensearch/api/actions/security/who_am_i_protected.rb +1 -1
  203. data/lib/opensearch/api/actions/sm/create_policy.rb +1 -1
  204. data/lib/opensearch/api/actions/sm/delete_policy.rb +2 -4
  205. data/lib/opensearch/api/actions/sm/explain_policy.rb +1 -1
  206. data/lib/opensearch/api/actions/sm/get_policies.rb +5 -5
  207. data/lib/opensearch/api/actions/sm/get_policy.rb +1 -1
  208. data/lib/opensearch/api/actions/sm/start_policy.rb +1 -1
  209. data/lib/opensearch/api/actions/sm/stop_policy.rb +1 -1
  210. data/lib/opensearch/api/actions/sm/update_policy.rb +1 -1
  211. data/lib/opensearch/api/actions/snapshot/cleanup_repository.rb +3 -3
  212. data/lib/opensearch/api/actions/snapshot/clone.rb +6 -6
  213. data/lib/opensearch/api/actions/snapshot/create.rb +6 -6
  214. data/lib/opensearch/api/actions/snapshot/create_repository.rb +6 -6
  215. data/lib/opensearch/api/actions/snapshot/delete.rb +4 -6
  216. data/lib/opensearch/api/actions/snapshot/delete_repository.rb +5 -7
  217. data/lib/opensearch/api/actions/snapshot/get.rb +5 -5
  218. data/lib/opensearch/api/actions/snapshot/get_repository.rb +4 -4
  219. data/lib/opensearch/api/actions/snapshot/restore.rb +5 -5
  220. data/lib/opensearch/api/actions/snapshot/status.rb +4 -4
  221. data/lib/opensearch/api/actions/snapshot/verify_repository.rb +3 -3
  222. data/lib/opensearch/api/actions/tasks/cancel.rb +5 -5
  223. data/lib/opensearch/api/actions/tasks/get.rb +3 -3
  224. data/lib/opensearch/api/actions/tasks/list.rb +7 -7
  225. data/lib/opensearch/api/actions/transforms/delete.rb +1 -3
  226. data/lib/opensearch/api/actions/update_by_query.rb +2 -2
  227. data/lib/opensearch/api/actions/wlm/delete_query_group.rb +1 -3
  228. data/lib/opensearch/api/utils.rb +1 -1
  229. data/lib/opensearch/transport/client.rb +21 -6
  230. data/lib/opensearch/transport/transport/base.rb +3 -8
  231. data/lib/opensearch/version.rb +1 -1
  232. data/lib/opensearch.rb +4 -0
  233. data/opensearch-ruby.gemspec +1 -0
  234. data/test/transport/unit/transport_base_test.rb +0 -26
  235. data.tar.gz.sig +0 -0
  236. metadata +62 -2
  237. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdf5c69e20343405defeff71ac640af01cd87f6222ffa2052029f31911267dda
4
- data.tar.gz: 0e7242dbf0511fc0dad15fa3afc85ff98de796b5a842001dcd60823c2537481b
3
+ metadata.gz: 52165e3bcc6883923f6bbfc57aeaf73b0cd9d054983804de6432baece83483ee
4
+ data.tar.gz: 0eb577153a23b0d91f091e901e8a209b6a880da271a5e426a27586bdccaa2710
5
5
  SHA512:
6
- metadata.gz: 73c975b47facb08c4643a5567251c0b4de1f065e05eb357e5e704166258461b8611b89839346280296eb1e1614bf5932c8169e650dac24474e172bed11ee4011
7
- data.tar.gz: b541b72c1493c598e02e4cf2583c83802c97811e7c62904e9d84f4862397340db9ee41a4d777f55323c718a90d6571494d9544d6674afe6d8ea0a7c3c9b1dbd9
6
+ metadata.gz: 900fd3c53f3b222fece0968e1094a87f5ce2cd6a7174d8a54470d74a19af5db6982351459d5efdedd03545ac824123daefb2373ae109a263fca50bbd755ba357
7
+ data.tar.gz: c72d67452b64da318baf2d9f71b2aff32ebb7c0e6f1eb493b5c91ddd7ab3b54590108b56dcc2ce5a705868cbf2c7772742029d55a85629de7a42cea129ce52e2
checksums.yaml.gz.sig CHANGED
Binary file
data/USER_GUIDE.md CHANGED
@@ -3,6 +3,7 @@
3
3
  - [Basic Usage](#basic-usage)
4
4
  - [OpenSearch DSL](#opensearch-dsl)
5
5
  - [Guides by Topics](#guides-by-topics)
6
+ - [Using a Request Signer](#using-a-request-signer)
6
7
  - [Amazon OpenSearch Service](#amazon-opensearch-service)
7
8
 
8
9
  # User Guide
@@ -24,12 +25,12 @@ bundle install
24
25
  Import the client:
25
26
 
26
27
  ```ruby
27
- require 'opensearch'
28
+ require 'opensearch-ruby'
28
29
  ```
29
30
 
30
31
  ## Basic Usage
31
32
  ```ruby
32
- require 'opensearch'
33
+ require 'opensearch-ruby'
33
34
 
34
35
  client = OpenSearch::Client.new(
35
36
  host: 'https://localhost:9200',
@@ -114,8 +115,8 @@ puts response
114
115
  The `opensearch-dsl` library is designed as a group of standalone Ruby modules, classes and DSL methods, which provide an idiomatic way to build complex search definitions
115
116
 
116
117
  ```ruby
117
- require 'opensearch'
118
- require 'opensearch/dsl'
118
+ require 'opensearch-ruby'
119
+ require 'opensearch-dsl'
119
120
  include OpenSearch::DSL
120
121
 
121
122
  response = client.search index: index_name, body: search {
@@ -142,8 +143,25 @@ response = client.search index: index_name, body: search {
142
143
  - [Transport Options](guides/transport_options.md)
143
144
  - [Custom HTTP Requests](guides/json.md)
144
145
 
146
+
147
+ ## Using a Request Signer
148
+ The OpenSearch ruby client supports request signing as an authentication mechanism. When instantiating a client, you can pass a request signer object to sign requests. This object is often created via a 3rd party library such as `opensearch-aws-sigv4`, but you can also create your own (Check the [DEVELOPER_GUIDE](./DEVELOPER_GUIDE.md) for more details). Below is a very simple example of a request signer object that simply signs the request with a timestamp:
149
+
150
+ ```ruby
151
+ require 'opensearch-ruby'
152
+
153
+ client = OpenSearch::Client.new(
154
+ host: 'https://localhost:9200',
155
+ request_signer: Struct.new(:signer) do
156
+ def self.sign_request(**args)
157
+ args[:headers].merge({ 'X-signature' => Time.now.utc })
158
+ end
159
+ end
160
+ )
161
+ ```
162
+
145
163
  ## Amazon OpenSearch Service
146
164
 
147
- Requests to [OpenSearch Service and OpenSearch Serverless](https://docs.aws.amazon.com/opensearch-service/index.html) must be signed using the AWS signing protocol. Use `opensearch-aws-sigv4` gem in place of `opensearch-ruby` gem.
165
+ Requests to [OpenSearch Service and OpenSearch Serverless](https://docs.aws.amazon.com/opensearch-service/index.html) must be signed using the AWS signing protocol. The `opensearch-aws-sigv4` gem provides a request signer object that can be passed to the `OpenSearch::Client` during instantiation to sign requests.
148
166
 
149
167
  For more information, checkout the [USER_GUIDE](https://github.com/opensearch-project/opensearch-ruby-aws-sigv4/blob/main/USER_GUIDE.md) of [opensearch-aws-sigv4 gem](https://github.com/opensearch-project/opensearch-ruby-aws-sigv4).
@@ -13,24 +13,22 @@ module OpenSearch
13
13
  module API
14
14
  module AsynchronousSearch
15
15
  module Actions
16
- # Delete asynchronous search.
16
+ # Deletes any responses from an asynchronous search.
17
17
  #
18
18
  # @option args [String] :id *Required*
19
- # @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
20
19
  def delete(args = {})
21
20
  args = Utils.clone_and_normalize_arguments(args)
22
21
  raise ArgumentError, "Required argument 'id' missing" if args['id'].nil?
23
22
 
24
23
  _id = args.delete('id')
25
24
 
26
- ignore = args.delete('ignore') || []
27
25
  headers = args.delete('headers') || {}
28
26
  body = args.delete('body')
29
27
  method = 'DELETE'
30
28
  url = Utils.build_url('_plugins/_asynchronous_search', _id)
31
29
 
32
30
  Utils.validate_query_params! args
33
- transport.perform_delete_request method, url, args, body, headers, ignore.include?(404)
31
+ transport.perform_delete_request method, url, args, body, headers
34
32
  end
35
33
  end
36
34
  end
@@ -13,7 +13,7 @@ module OpenSearch
13
13
  module API
14
14
  module AsynchronousSearch
15
15
  module Actions
16
- # Get partial responses from asynchronous search.
16
+ # Gets partial responses from an asynchronous search.
17
17
  #
18
18
  # @option args [String] :id *Required*
19
19
  def get(args = {})
@@ -13,12 +13,12 @@ module OpenSearch
13
13
  module API
14
14
  module AsynchronousSearch
15
15
  module Actions
16
- # Perform an asynchronous search.
16
+ # Performs an asynchronous search.
17
17
  #
18
18
  # @option args [String] :index The name of the index to be searched. Can be an individual name, a comma-separated list of indexes, or a wildcard expression of index names.
19
- # @option args [String] :keep_alive The amount of time that the result is saved in the cluster. For example, `2d` means that the results are stored in the cluster for 48 hours. The saved search results are deleted after this period or if the search is canceled. Note that this includes the query execution time. If the query overruns this time, the process cancels this query automatically.
20
- # @option args [Boolean] :keep_on_completion Whether you want to save the results in the cluster after the search is complete.
21
- # @option args [String] :wait_for_completion_timeout The amount of time that you plan to wait for the results. You can poll the remaining results based on an ID. The maximum value is `300s`. Default is `1s`.
19
+ # @option args [String] :keep_alive The amount of time that the result is saved in the cluster. For example, `2d` means that the results are stored in the cluster for 48 hours. The saved search results are deleted after this period or if the search is canceled. Note that this includes the query execution time. If the query exceeds this amount of time, the process cancels this query automatically.
20
+ # @option args [Boolean] :keep_on_completion Whether to save the results in the cluster after the search is complete. You can examine the stored results at a later time.
21
+ # @option args [String] :wait_for_completion_timeout The amount of time to wait for the results. You can poll the remaining results based on an ID. The maximum value is 300 seconds. Default is `1s`.
22
22
  # @option args [Hash] :body The search definition using the Query DSL.
23
23
  def search(args = {})
24
24
  args = Utils.clone_and_normalize_arguments(args)
@@ -13,7 +13,7 @@ module OpenSearch
13
13
  module API
14
14
  module AsynchronousSearch
15
15
  module Actions
16
- # Monitoring of asynchronous searches that are running, completed, and/or persisted.
16
+ # Monitors any asynchronous searches that are `running`, `completed`, or `persisted`.
17
17
  #
18
18
  def stats(args = {})
19
19
  args = Utils.clone_and_normalize_arguments(args)
@@ -13,15 +13,15 @@ module OpenSearch
13
13
  module API
14
14
  module Cat
15
15
  module Actions
16
- # Shows information about currently configured aliases to indexes including filter and routing info.
16
+ # Shows information about aliases currently configured to indexes, including filter and routing information.
17
17
  #
18
- # @option args [Enumerable<String>, String] :expand_wildcards Whether to expand wildcard expression to concrete indexes that are open, closed or both.
19
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21
- # @option args [Boolean] :help Return help information.
22
- # @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
23
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
24
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [Enumerable<String>, String] :expand_wildcards Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
19
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
20
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21
+ # @option args [Boolean] :help Returns help information.
22
+ # @option args [Boolean] :local Whether to return information from the local node only instead of from the cluster manager node.
23
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
24
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
25
25
  # @option args [Enumerable<String>, String] :name A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
26
26
  def aliases(args = {})
27
27
  args = Utils.clone_and_normalize_arguments(args)
@@ -13,14 +13,14 @@ module OpenSearch
13
13
  module API
14
14
  module Cat
15
15
  module Actions
16
- # Lists all active point-in-time segments.
16
+ # Lists all active CAT point-in-time segments.
17
17
  #
18
- # @option args [String] :bytes The unit in which to display byte values.
19
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21
- # @option args [Boolean] :help Return help information.
22
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
23
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :bytes The units used to display byte values.
19
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
20
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21
+ # @option args [Boolean] :help Returns help information.
22
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
23
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
24
24
  def all_pit_segments(args = {})
25
25
  args = Utils.clone_and_normalize_arguments(args)
26
26
  headers = args.delete('headers') || {}
@@ -15,16 +15,16 @@ module OpenSearch
15
15
  module Actions
16
16
  # Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.
17
17
  #
18
- # @option args [String] :bytes The unit used to display byte values.
19
- # @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
20
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
21
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
22
- # @option args [Boolean] :help Return help information.
23
- # @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
24
- # @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
25
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
26
- # @option args [Boolean] :v Verbose mode. Display column headers.
27
- # @option args [Enumerable<String>, String] :node_id Comma-separated list of node identifiers or names used to limit the returned information.
18
+ # @option args [String] :bytes The units used to display byte values.
19
+ # @option args [String] :cluster_manager_timeout A timeout for connection to the cluster manager node.
20
+ # @option args [String] :format A short version of the HTTP `Accept` header, such as `json` or `yaml`.
21
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
22
+ # @option args [Boolean] :help Returns help information.
23
+ # @option args [Boolean] :local Returns local information but does not retrieve the state from cluster-manager node.
24
+ # @option args [String] :master_timeout DEPRECATED A timeout for connection to the cluster manager node.
25
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
26
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
27
+ # @option args [Enumerable<String>, String] :node_id A comma-separated list of node IDs or names used to limit the returned information.
28
28
  def allocation(args = {})
29
29
  args = Utils.clone_and_normalize_arguments(args)
30
30
  _node_id = args.delete('node_id')
@@ -15,14 +15,14 @@ module OpenSearch
15
15
  module Actions
16
16
  # Returns information about the cluster-manager node.
17
17
  #
18
- # @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
19
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21
- # @option args [Boolean] :help Return help information.
22
- # @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
23
- # @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
24
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
25
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :cluster_manager_timeout A timeout for connection to the cluster manager node.
19
+ # @option args [String] :format A short version of the HTTP `Accept` header, such as `json` or `yaml`.
20
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21
+ # @option args [Boolean] :help Returns help information.
22
+ # @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
23
+ # @option args [String] :master_timeout DEPRECATED A timeout for connection to the cluster manager node.
24
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
25
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
26
26
  def cluster_manager(args = {})
27
27
  args = Utils.clone_and_normalize_arguments(args)
28
28
  headers = args.delete('headers') || {}
@@ -13,13 +13,13 @@ module OpenSearch
13
13
  module API
14
14
  module Cat
15
15
  module Actions
16
- # Provides quick access to the document count of the entire cluster, or individual indexes.
16
+ # Provides quick access to the document count of the entire cluster or of an individual index.
17
17
  #
18
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
19
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
20
- # @option args [Boolean] :help Return help information.
21
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
22
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
19
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
20
+ # @option args [Boolean] :help Returns help information.
21
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
22
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
23
23
  # @option args [Enumerable<String>, String] :index Comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
24
24
  def count(args = {})
25
25
  args = Utils.clone_and_normalize_arguments(args)
@@ -15,13 +15,13 @@ module OpenSearch
15
15
  module Actions
16
16
  # Shows how much heap memory is currently being used by field data on every data node in the cluster.
17
17
  #
18
- # @option args [String] :bytes The unit used to display byte values.
19
- # @option args [Enumerable<String>, String] :fields Comma-separated list of fields used to limit returned information.
20
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
21
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
22
- # @option args [Boolean] :help Return help information.
23
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
24
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :bytes The units used to display byte values.
19
+ # @option args [Enumerable<String>, String] :fields A comma-separated list of fields used to limit the amount of returned information.
20
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
21
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
22
+ # @option args [Boolean] :help Returns help information.
23
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
24
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
25
25
  def fielddata(args = {})
26
26
  args = Utils.clone_and_normalize_arguments(args)
27
27
  _fields = args.delete('fields')
@@ -15,13 +15,13 @@ module OpenSearch
15
15
  module Actions
16
16
  # Returns a concise representation of the cluster health.
17
17
  #
18
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
19
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
20
- # @option args [Boolean] :help Return help information.
21
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
18
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
19
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
20
+ # @option args [Boolean] :help Returns help information.
21
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
22
22
  # @option args [String] :time The unit used to display time values.
23
- # @option args [Boolean] :ts (default: true) If `true`, returns `HH:MM:SS` and Unix epoch timestamps.
24
- # @option args [Boolean] :v Verbose mode. Display column headers.
23
+ # @option args [Boolean] :ts (default: true) When `true`, returns `HH:MM:SS` and Unix epoch timestamps.
24
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
25
25
  def health(args = {})
26
26
  args = Utils.clone_and_normalize_arguments(args)
27
27
  headers = args.delete('headers') || {}
@@ -13,23 +13,23 @@ module OpenSearch
13
13
  module API
14
14
  module Cat
15
15
  module Actions
16
- # Returns information about indexes: number of primaries and replicas, document counts, disk size, ...
16
+ # Lists information related to indexes, that is, how much disk space they are using, how many shards they have, their health status, and so on.
17
17
  #
18
- # @option args [String] :bytes The unit used to display byte values.
19
- # @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
20
- # @option args [Enumerable<String>, String] :expand_wildcards The type of index that wildcard patterns can match.
21
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
22
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
23
- # @option args [String] :health The health status used to limit returned indexes. By default, the response includes indexes of any health status.
24
- # @option args [Boolean] :help Return help information.
25
- # @option args [Boolean] :include_unloaded_segments If `true`, the response includes information from segments that are not loaded into memory.
26
- # @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
27
- # @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
28
- # @option args [Boolean] :pri If `true`, the response only includes information from primary shards.
29
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
30
- # @option args [String] :time The unit used to display time values.
31
- # @option args [Boolean] :v Verbose mode. Display column headers.
32
- # @option args [Enumerable<String>, String] :index Comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
18
+ # @option args [String] :bytes The units used to display byte values.
19
+ # @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
20
+ # @option args [Enumerable<String>, String] :expand_wildcards Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
21
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
22
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
23
+ # @option args [String] :health Limits indexes based on their health status. Supported values are `green`, `yellow`, and `red`.
24
+ # @option args [Boolean] :help Returns help information.
25
+ # @option args [Boolean] :include_unloaded_segments Whether to include information from segments not loaded into memory.
26
+ # @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
27
+ # @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
28
+ # @option args [Boolean] :pri When `true`, returns information only from the primary shards.
29
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
30
+ # @option args [String] :time Specifies the time units.
31
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
32
+ # @option args [Enumerable<String>, String] :index A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
33
33
  def indices(args = {})
34
34
  args = Utils.clone_and_normalize_arguments(args)
35
35
  _index = args.delete('index')
@@ -15,14 +15,14 @@ module OpenSearch
15
15
  module Actions
16
16
  # Returns information about the cluster-manager node.
17
17
  #
18
- # @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
19
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21
- # @option args [Boolean] :help Return help information.
22
- # @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
23
- # @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
24
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
25
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
19
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
20
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21
+ # @option args [Boolean] :help Returns help information.
22
+ # @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
23
+ # @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
24
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
25
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
26
26
  def master(args = {})
27
27
  args = Utils.clone_and_normalize_arguments(args)
28
28
  headers = args.delete('headers') || {}
@@ -15,14 +15,14 @@ module OpenSearch
15
15
  module Actions
16
16
  # Returns information about custom node attributes.
17
17
  #
18
- # @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
19
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21
- # @option args [Boolean] :help Return help information.
22
- # @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
23
- # @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
24
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
25
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
19
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
20
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21
+ # @option args [Boolean] :help Returns help information.
22
+ # @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
23
+ # @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
24
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
25
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
26
26
  def nodeattrs(args = {})
27
27
  args = Utils.clone_and_normalize_arguments(args)
28
28
  headers = args.delete('headers') || {}
@@ -13,19 +13,19 @@ module OpenSearch
13
13
  module API
14
14
  module Cat
15
15
  module Actions
16
- # Returns basic statistics about performance of cluster nodes.
16
+ # Returns basic statistics about the performance of cluster nodes.
17
17
  #
18
- # @option args [String] :bytes The unit used to display byte values.
19
- # @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
20
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
21
- # @option args [Boolean, String] :full_id If `true`, return the full node ID. If `false`, return the shortened node ID.
22
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
23
- # @option args [Boolean] :help Return help information.
24
- # @option args [Boolean] :local DEPRECATED Return local information, do not retrieve the state from cluster-manager node.
25
- # @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
26
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
27
- # @option args [String] :time The unit in which to display time values.
28
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :bytes The units used to display byte values.
19
+ # @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
20
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
21
+ # @option args [Boolean, String] :full_id When `true`, returns the full node ID. When `false`, returns the shortened node ID.
22
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
23
+ # @option args [Boolean] :help Returns help information.
24
+ # @option args [Boolean] :local DEPRECATED Returns local information but does not retrieve the state from the cluster manager node.
25
+ # @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
26
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
27
+ # @option args [String] :time Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
28
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
29
29
  def nodes(args = {})
30
30
  args = Utils.clone_and_normalize_arguments(args)
31
31
  headers = args.delete('headers') || {}
@@ -13,17 +13,17 @@ module OpenSearch
13
13
  module API
14
14
  module Cat
15
15
  module Actions
16
- # Returns a concise representation of the cluster pending tasks.
16
+ # Returns a concise representation of the cluster's pending tasks.
17
17
  #
18
- # @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
19
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21
- # @option args [Boolean] :help Return help information.
22
- # @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
23
- # @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
24
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
25
- # @option args [String] :time The unit in which to display time values.
26
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
19
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
20
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21
+ # @option args [Boolean] :help Returns help information.
22
+ # @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
23
+ # @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
24
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
25
+ # @option args [String] :time Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
26
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
27
27
  def pending_tasks(args = {})
28
28
  args = Utils.clone_and_normalize_arguments(args)
29
29
  headers = args.delete('headers') || {}
@@ -13,14 +13,14 @@ module OpenSearch
13
13
  module API
14
14
  module Cat
15
15
  module Actions
16
- # List segments for one or several PITs.
16
+ # Lists one or several CAT point-in-time segments.
17
17
  #
18
- # @option args [String] :bytes The unit in which to display byte values.
19
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21
- # @option args [Boolean] :help Return help information.
22
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
23
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :bytes The units used to display byte values.
19
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
20
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21
+ # @option args [Boolean] :help Returns help information.
22
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
23
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
24
24
  # @option args [Hash] :body
25
25
  def pit_segments(args = {})
26
26
  args = Utils.clone_and_normalize_arguments(args)
@@ -13,16 +13,16 @@ module OpenSearch
13
13
  module API
14
14
  module Cat
15
15
  module Actions
16
- # Returns information about installed plugins across nodes node.
16
+ # Returns information about the names, components, and versions of the installed plugins.
17
17
  #
18
- # @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
19
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21
- # @option args [Boolean] :help Return help information.
22
- # @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
23
- # @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
24
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
25
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
19
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
20
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21
+ # @option args [Boolean] :help Returns help information.
22
+ # @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
23
+ # @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
24
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
25
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
26
26
  def plugins(args = {})
27
27
  args = Utils.clone_and_normalize_arguments(args)
28
28
  headers = args.delete('headers') || {}
@@ -13,18 +13,18 @@ module OpenSearch
13
13
  module API
14
14
  module Cat
15
15
  module Actions
16
- # Returns information about index shard recoveries, both on-going completed.
16
+ # Returns all completed and ongoing index and shard recoveries.
17
17
  #
18
18
  # @option args [Boolean] :active_only If `true`, the response only includes ongoing shard recoveries.
19
- # @option args [String] :bytes The unit used to display byte values.
20
- # @option args [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries.
21
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
22
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
23
- # @option args [Boolean] :help Return help information.
24
- # @option args [Enumerable<String>] :index Comma-separated list or wildcard expression of index names to limit the returned information.
25
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
26
- # @option args [String] :time The unit in which to display time values.
27
- # @option args [Boolean] :v Verbose mode. Display column headers.
19
+ # @option args [String] :bytes The units used to display byte values.
20
+ # @option args [Boolean] :detailed When `true`, includes detailed information about shard recoveries.
21
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
22
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
23
+ # @option args [Boolean] :help Returns help information.
24
+ # @option args [Enumerable<String>] :index A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
25
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
26
+ # @option args [String] :time Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
27
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
28
28
  def recovery(args = {})
29
29
  args = Utils.clone_and_normalize_arguments(args)
30
30
  _index = args.delete('index')
@@ -13,16 +13,16 @@ module OpenSearch
13
13
  module API
14
14
  module Cat
15
15
  module Actions
16
- # Returns information about snapshot repositories registered in the cluster.
16
+ # Returns information about all snapshot repositories for a cluster.
17
17
  #
18
- # @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
19
- # @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20
- # @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21
- # @option args [Boolean] :help Return help information.
22
- # @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
23
- # @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
24
- # @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
25
- # @option args [Boolean] :v Verbose mode. Display column headers.
18
+ # @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
19
+ # @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
20
+ # @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21
+ # @option args [Boolean] :help Returns help information.
22
+ # @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
23
+ # @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
24
+ # @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
25
+ # @option args [Boolean] :v Enables verbose mode, which displays column headers.
26
26
  def repositories(args = {})
27
27
  args = Utils.clone_and_normalize_arguments(args)
28
28
  headers = args.delete('headers') || {}