elasticsearch9 9.1.2__tar.gz → 9.1.3__tar.gz

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 (224) hide show
  1. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/PKG-INFO +1 -1
  2. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/__init__.py +67 -65
  3. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/async_search.py +3 -3
  4. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/autoscaling.py +8 -4
  5. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/cat.py +40 -2
  6. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/ccr.py +10 -10
  7. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/cluster.py +34 -33
  8. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/connector.py +42 -41
  9. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/dangling_indices.py +8 -12
  10. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/enrich.py +10 -10
  11. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/eql.py +10 -10
  12. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/esql.py +16 -16
  13. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/features.py +6 -6
  14. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/fleet.py +8 -12
  15. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/graph.py +3 -7
  16. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/ilm.py +20 -28
  17. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/indices.py +140 -160
  18. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/inference.py +30 -126
  19. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/ingest.py +9 -9
  20. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/license.py +5 -7
  21. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/logstash.py +4 -4
  22. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/migration.py +6 -6
  23. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/ml.py +125 -85
  24. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/monitoring.py +4 -3
  25. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/nodes.py +15 -15
  26. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/query_rules.py +16 -16
  27. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/rollup.py +21 -21
  28. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/search_application.py +19 -19
  29. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/searchable_snapshots.py +10 -10
  30. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/security.py +8 -7
  31. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/shutdown.py +9 -4
  32. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/simulate.py +4 -4
  33. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/slm.py +18 -22
  34. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/snapshot.py +20 -20
  35. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/sql.py +10 -10
  36. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/streams.py +6 -6
  37. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/synonyms.py +10 -10
  38. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/tasks.py +8 -8
  39. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/text_structure.py +13 -9
  40. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/transform.py +51 -12
  41. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/utils.py +4 -2
  42. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/watcher.py +26 -26
  43. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/xpack.py +6 -5
  44. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/__init__.py +69 -65
  45. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/async_search.py +3 -3
  46. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/autoscaling.py +8 -4
  47. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/cat.py +40 -2
  48. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/ccr.py +10 -10
  49. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/cluster.py +34 -33
  50. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/connector.py +42 -41
  51. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/dangling_indices.py +8 -12
  52. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/enrich.py +10 -10
  53. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/eql.py +10 -10
  54. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/esql.py +16 -16
  55. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/features.py +6 -6
  56. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/fleet.py +8 -12
  57. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/graph.py +3 -7
  58. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/ilm.py +20 -28
  59. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/indices.py +140 -160
  60. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/inference.py +30 -126
  61. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/ingest.py +9 -9
  62. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/license.py +5 -7
  63. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/logstash.py +4 -4
  64. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/migration.py +6 -6
  65. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/ml.py +125 -85
  66. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/monitoring.py +4 -3
  67. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/nodes.py +15 -15
  68. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/query_rules.py +16 -16
  69. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/rollup.py +21 -21
  70. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/search_application.py +19 -19
  71. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/searchable_snapshots.py +10 -10
  72. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/security.py +8 -7
  73. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/shutdown.py +9 -4
  74. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/simulate.py +4 -4
  75. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/slm.py +18 -22
  76. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/snapshot.py +20 -20
  77. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/sql.py +10 -10
  78. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/streams.py +6 -6
  79. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/synonyms.py +10 -10
  80. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/tasks.py +8 -8
  81. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/text_structure.py +13 -9
  82. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/transform.py +51 -12
  83. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/utils.py +16 -2
  84. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/watcher.py +26 -26
  85. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/xpack.py +6 -5
  86. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_version.py +2 -2
  87. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_async/document.py +4 -5
  88. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_async/index.py +1 -1
  89. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_async/search.py +2 -3
  90. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_sync/document.py +4 -5
  91. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_sync/index.py +1 -1
  92. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_sync/search.py +2 -3
  93. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/aggs.py +3 -3
  94. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/async_connections.py +1 -2
  95. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/connections.py +1 -2
  96. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/document_base.py +1 -1
  97. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/field.py +1 -9
  98. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/query.py +24 -5
  99. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/serializer.py +1 -2
  100. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/types.py +11 -43
  101. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/utils.py +1 -2
  102. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/esql/esql.py +1 -1
  103. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/esql/functions.py +2 -2
  104. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/__init__.py +7 -7
  105. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_async/_utils.py +1 -1
  106. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_async/embedding_service.py +2 -2
  107. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_async/strategies.py +3 -3
  108. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_async/vectorstore.py +5 -5
  109. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_sync/_utils.py +1 -1
  110. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_sync/embedding_service.py +2 -2
  111. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_sync/strategies.py +3 -3
  112. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_sync/vectorstore.py +5 -5
  113. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/.gitignore +0 -0
  114. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/CHANGELOG.md +0 -0
  115. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/CONTRIBUTING.md +0 -0
  116. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/LICENSE +0 -0
  117. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/NOTICE +0 -0
  118. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/README.md +0 -0
  119. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/Makefile +0 -0
  120. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/_static/css/custom.css +0 -0
  121. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/_static/images/create-api-key.png +0 -0
  122. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/async-search.rst +0 -0
  123. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/autoscaling.rst +0 -0
  124. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/cat.rst +0 -0
  125. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/ccr.rst +0 -0
  126. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/cluster.rst +0 -0
  127. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/connector.rst +0 -0
  128. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/dangling-indices.rst +0 -0
  129. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/elasticsearch.rst +0 -0
  130. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/enrich-policies.rst +0 -0
  131. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/eql.rst +0 -0
  132. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/esql.rst +0 -0
  133. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/fleet.rst +0 -0
  134. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/graph-explore.rst +0 -0
  135. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/index-lifecycle-management.rst +0 -0
  136. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/indices.rst +0 -0
  137. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/inference.rst +0 -0
  138. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/ingest-pipelines.rst +0 -0
  139. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/license.rst +0 -0
  140. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/logstash.rst +0 -0
  141. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/migration.rst +0 -0
  142. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/ml.rst +0 -0
  143. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/monitoring.rst +0 -0
  144. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/nodes.rst +0 -0
  145. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/query-rules.rst +0 -0
  146. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/rollup-indices.rst +0 -0
  147. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/search-application.rst +0 -0
  148. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/searchable-snapshots.rst +0 -0
  149. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/security.rst +0 -0
  150. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/shutdown.rst +0 -0
  151. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/simulate.rst +0 -0
  152. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/snapshot-lifecycle-management.rst +0 -0
  153. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/snapshots.rst +0 -0
  154. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/snapshottable-features.rst +0 -0
  155. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/sql.rst +0 -0
  156. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/streams.rst +0 -0
  157. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/synonyms.rst +0 -0
  158. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/tasks.rst +0 -0
  159. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/text-structure.rst +0 -0
  160. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/tls-ssl.rst +0 -0
  161. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/transforms.rst +0 -0
  162. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/watcher.rst +0 -0
  163. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api/x-pack.rst +0 -0
  164. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/api_helpers.rst +0 -0
  165. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/async_api_helpers.rst +0 -0
  166. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/async_dsl.rst +0 -0
  167. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/async_es_api.rst +0 -0
  168. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/conf.py +0 -0
  169. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/dsl.rst +0 -0
  170. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/es_api.rst +0 -0
  171. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/esql.rst +0 -0
  172. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/exceptions.rst +0 -0
  173. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/docs/sphinx/index.rst +0 -0
  174. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/__init__.py +0 -0
  175. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/__init__.py +0 -0
  176. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/_base.py +0 -0
  177. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/client/ssl.py +0 -0
  178. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_async/helpers.py +0 -0
  179. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_otel.py +0 -0
  180. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/__init__.py +0 -0
  181. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/_base.py +0 -0
  182. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_sync/client/ssl.py +0 -0
  183. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/_utils.py +0 -0
  184. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/client.py +0 -0
  185. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/compat.py +0 -0
  186. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/__init__.py +0 -0
  187. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_async/__init__.py +0 -0
  188. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_async/faceted_search.py +0 -0
  189. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_async/mapping.py +0 -0
  190. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_async/update_by_query.py +0 -0
  191. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_sync/__init__.py +0 -0
  192. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_sync/faceted_search.py +0 -0
  193. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_sync/mapping.py +0 -0
  194. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/_sync/update_by_query.py +0 -0
  195. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/analysis.py +0 -0
  196. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/document.py +0 -0
  197. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/exceptions.py +0 -0
  198. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/faceted_search.py +0 -0
  199. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/faceted_search_base.py +0 -0
  200. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/function.py +0 -0
  201. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/index.py +0 -0
  202. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/index_base.py +0 -0
  203. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/mapping.py +0 -0
  204. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/mapping_base.py +0 -0
  205. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/response/__init__.py +0 -0
  206. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/response/aggs.py +0 -0
  207. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/response/hit.py +0 -0
  208. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/search.py +0 -0
  209. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/search_base.py +0 -0
  210. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/update_by_query.py +0 -0
  211. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/update_by_query_base.py +0 -0
  212. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/dsl/wrappers.py +0 -0
  213. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/esql/__init__.py +0 -0
  214. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/exceptions.py +0 -0
  215. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/__init__.py +0 -0
  216. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/actions.py +0 -0
  217. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/errors.py +0 -0
  218. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_async/__init__.py +0 -0
  219. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_sync/__init__.py +0 -0
  220. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/helpers/vectorstore/_utils.py +0 -0
  221. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/py.typed +0 -0
  222. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/elasticsearch9/serializer.py +0 -0
  223. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/pyproject.toml +0 -0
  224. {elasticsearch9-9.1.2 → elasticsearch9-9.1.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: elasticsearch9
3
- Version: 9.1.2
3
+ Version: 9.1.3
4
4
  Summary: Python client for Elasticsearch
5
5
  Project-URL: Documentation, https://elasticsearch9-py.readthedocs.io/
6
6
  Project-URL: Homepage, https://github.com/elastic/elasticsearch9-py
@@ -84,9 +84,9 @@ from .utils import (
84
84
  CLIENT_META_SERVICE,
85
85
  SKIP_IN_PATH,
86
86
  Stability,
87
+ _availability_warning,
87
88
  _quote,
88
89
  _rewrite_parameters,
89
- _stability_warning,
90
90
  client_node_configs,
91
91
  is_requests_http_auth,
92
92
  is_requests_node_class,
@@ -502,6 +502,7 @@ class AsyncElasticsearch(BaseClient):
502
502
  """
503
503
  __path = "/"
504
504
  __query: t.Dict[str, t.Any] = {}
505
+ __path_parts: t.Dict[str, str] = {}
505
506
  if error_trace is not None:
506
507
  __query["error_trace"] = error_trace
507
508
  if filter_path is not None:
@@ -513,7 +514,12 @@ class AsyncElasticsearch(BaseClient):
513
514
  __headers = {"accept": "application/json"}
514
515
  try:
515
516
  await self.perform_request(
516
- "HEAD", __path, params=__query, headers=__headers
517
+ "HEAD",
518
+ __path,
519
+ params=__query,
520
+ headers=__headers,
521
+ endpoint_id="ping",
522
+ path_parts=__path_parts,
517
523
  )
518
524
  return True
519
525
  except (ApiError, TransportError):
@@ -559,8 +565,8 @@ class AsyncElasticsearch(BaseClient):
559
565
  """
560
566
  .. raw:: html
561
567
 
562
- <p>Bulk index or delete documents.
563
- Perform multiple <code>index</code>, <code>create</code>, <code>delete</code>, and <code>update</code> actions in a single request.
568
+ <p>Bulk index or delete documents.</p>
569
+ <p>Perform multiple <code>index</code>, <code>create</code>, <code>delete</code>, and <code>update</code> actions in a single request.
564
570
  This reduces overhead and can greatly increase indexing speed.</p>
565
571
  <p>If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias:</p>
566
572
  <ul>
@@ -765,8 +771,8 @@ class AsyncElasticsearch(BaseClient):
765
771
  """
766
772
  .. raw:: html
767
773
 
768
- <p>Clear a scrolling search.
769
- Clear the search context and results for a scrolling search.</p>
774
+ <p>Clear a scrolling search.</p>
775
+ <p>Clear the search context and results for a scrolling search.</p>
770
776
 
771
777
 
772
778
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-clear-scroll>`_
@@ -819,8 +825,8 @@ class AsyncElasticsearch(BaseClient):
819
825
  """
820
826
  .. raw:: html
821
827
 
822
- <p>Close a point in time.
823
- A point in time must be opened explicitly before being used in search requests.
828
+ <p>Close a point in time.</p>
829
+ <p>A point in time must be opened explicitly before being used in search requests.
824
830
  The <code>keep_alive</code> parameter tells Elasticsearch how long it should persist.
825
831
  A point in time is automatically closed when the <code>keep_alive</code> period has elapsed.
826
832
  However, keeping points in time has a cost; close them as soon as they are no longer required for search requests.</p>
@@ -847,11 +853,7 @@ class AsyncElasticsearch(BaseClient):
847
853
  if not __body:
848
854
  if id is not None:
849
855
  __body["id"] = id
850
- if not __body:
851
- __body = None # type: ignore[assignment]
852
- __headers = {"accept": "application/json"}
853
- if __body is not None:
854
- __headers["content-type"] = "application/json"
856
+ __headers = {"accept": "application/json", "content-type": "application/json"}
855
857
  return await self.perform_request( # type: ignore[return-value]
856
858
  "DELETE",
857
859
  __path,
@@ -900,8 +902,8 @@ class AsyncElasticsearch(BaseClient):
900
902
  """
901
903
  .. raw:: html
902
904
 
903
- <p>Count search results.
904
- Get the number of documents matching a query.</p>
905
+ <p>Count search results.</p>
906
+ <p>Get the number of documents matching a query.</p>
905
907
  <p>The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body.
906
908
  The query is optional. When no query is provided, the API uses <code>match_all</code> to count all the documents.</p>
907
909
  <p>The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices.</p>
@@ -1637,11 +1639,11 @@ class AsyncElasticsearch(BaseClient):
1637
1639
  self,
1638
1640
  *,
1639
1641
  task_id: str,
1642
+ requests_per_second: float,
1640
1643
  error_trace: t.Optional[bool] = None,
1641
1644
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
1642
1645
  human: t.Optional[bool] = None,
1643
1646
  pretty: t.Optional[bool] = None,
1644
- requests_per_second: t.Optional[float] = None,
1645
1647
  ) -> ObjectApiResponse[t.Any]:
1646
1648
  """
1647
1649
  .. raw:: html
@@ -1659,9 +1661,13 @@ class AsyncElasticsearch(BaseClient):
1659
1661
  """
1660
1662
  if task_id in SKIP_IN_PATH:
1661
1663
  raise ValueError("Empty value passed for parameter 'task_id'")
1664
+ if requests_per_second is None:
1665
+ raise ValueError("Empty value passed for parameter 'requests_per_second'")
1662
1666
  __path_parts: t.Dict[str, str] = {"task_id": _quote(task_id)}
1663
1667
  __path = f'/_delete_by_query/{__path_parts["task_id"]}/_rethrottle'
1664
1668
  __query: t.Dict[str, t.Any] = {}
1669
+ if requests_per_second is not None:
1670
+ __query["requests_per_second"] = requests_per_second
1665
1671
  if error_trace is not None:
1666
1672
  __query["error_trace"] = error_trace
1667
1673
  if filter_path is not None:
@@ -1670,8 +1676,6 @@ class AsyncElasticsearch(BaseClient):
1670
1676
  __query["human"] = human
1671
1677
  if pretty is not None:
1672
1678
  __query["pretty"] = pretty
1673
- if requests_per_second is not None:
1674
- __query["requests_per_second"] = requests_per_second
1675
1679
  __headers = {"accept": "application/json"}
1676
1680
  return await self.perform_request( # type: ignore[return-value]
1677
1681
  "POST",
@@ -1697,8 +1701,8 @@ class AsyncElasticsearch(BaseClient):
1697
1701
  """
1698
1702
  .. raw:: html
1699
1703
 
1700
- <p>Delete a script or search template.
1701
- Deletes a stored script or search template.</p>
1704
+ <p>Delete a script or search template.</p>
1705
+ <p>Deletes a stored script or search template.</p>
1702
1706
 
1703
1707
 
1704
1708
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-script>`_
@@ -2009,8 +2013,8 @@ class AsyncElasticsearch(BaseClient):
2009
2013
  """
2010
2014
  .. raw:: html
2011
2015
 
2012
- <p>Explain a document match result.
2013
- Get information about why a specific document matches, or doesn't match, a query.
2016
+ <p>Explain a document match result.</p>
2017
+ <p>Get information about why a specific document matches, or doesn't match, a query.
2014
2018
  It computes a score explanation for a query and a specific document.</p>
2015
2019
 
2016
2020
 
@@ -2413,8 +2417,8 @@ class AsyncElasticsearch(BaseClient):
2413
2417
  """
2414
2418
  .. raw:: html
2415
2419
 
2416
- <p>Get a script or search template.
2417
- Retrieves a stored script or search template.</p>
2420
+ <p>Get a script or search template.</p>
2421
+ <p>Retrieves a stored script or search template.</p>
2418
2422
 
2419
2423
 
2420
2424
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script>`_
@@ -2650,8 +2654,8 @@ class AsyncElasticsearch(BaseClient):
2650
2654
  """
2651
2655
  .. raw:: html
2652
2656
 
2653
- <p>Get the cluster health.
2654
- Get a report with the health status of an Elasticsearch cluster.
2657
+ <p>Get the cluster health.</p>
2658
+ <p>Get a report with the health status of an Elasticsearch cluster.
2655
2659
  The report contains a list of indicators that compose Elasticsearch functionality.</p>
2656
2660
  <p>Each indicator has a health status of: green, unknown, yellow or red.
2657
2661
  The indicator will provide an explanation and metadata describing the reason for its current health status.</p>
@@ -2822,13 +2826,11 @@ class AsyncElasticsearch(BaseClient):
2822
2826
  &quot;id&quot;: &quot;elkbee&quot;
2823
2827
  }
2824
2828
  }
2825
-
2826
- In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
2827
- If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code).
2828
-
2829
- A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used.
2830
- Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order.
2831
2829
  </code></pre>
2830
+ <p>In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
2831
+ If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code).</p>
2832
+ <p>A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used.
2833
+ Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order.</p>
2832
2834
 
2833
2835
 
2834
2836
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create>`_
@@ -2963,8 +2965,8 @@ class AsyncElasticsearch(BaseClient):
2963
2965
  """
2964
2966
  .. raw:: html
2965
2967
 
2966
- <p>Get cluster info.
2967
- Get basic build, version, and cluster information.
2968
+ <p>Get cluster info.</p>
2969
+ <p>Get basic build, version, and cluster information.
2968
2970
  ::: In Serverless, this API is retained for backward compatibility only. Some response fields, such as the version number, should be ignored.</p>
2969
2971
 
2970
2972
 
@@ -3658,8 +3660,8 @@ class AsyncElasticsearch(BaseClient):
3658
3660
  """
3659
3661
  .. raw:: html
3660
3662
 
3661
- <p>Create or update a script or search template.
3662
- Creates or updates a stored script or search template.</p>
3663
+ <p>Create or update a script or search template.</p>
3664
+ <p>Creates or updates a stored script or search template.</p>
3663
3665
 
3664
3666
 
3665
3667
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-put-script>`_
@@ -3993,11 +3995,11 @@ class AsyncElasticsearch(BaseClient):
3993
3995
  self,
3994
3996
  *,
3995
3997
  task_id: str,
3998
+ requests_per_second: float,
3996
3999
  error_trace: t.Optional[bool] = None,
3997
4000
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
3998
4001
  human: t.Optional[bool] = None,
3999
4002
  pretty: t.Optional[bool] = None,
4000
- requests_per_second: t.Optional[float] = None,
4001
4003
  ) -> ObjectApiResponse[t.Any]:
4002
4004
  """
4003
4005
  .. raw:: html
@@ -4021,9 +4023,13 @@ class AsyncElasticsearch(BaseClient):
4021
4023
  """
4022
4024
  if task_id in SKIP_IN_PATH:
4023
4025
  raise ValueError("Empty value passed for parameter 'task_id'")
4026
+ if requests_per_second is None:
4027
+ raise ValueError("Empty value passed for parameter 'requests_per_second'")
4024
4028
  __path_parts: t.Dict[str, str] = {"task_id": _quote(task_id)}
4025
4029
  __path = f'/_reindex/{__path_parts["task_id"]}/_rethrottle'
4026
4030
  __query: t.Dict[str, t.Any] = {}
4031
+ if requests_per_second is not None:
4032
+ __query["requests_per_second"] = requests_per_second
4027
4033
  if error_trace is not None:
4028
4034
  __query["error_trace"] = error_trace
4029
4035
  if filter_path is not None:
@@ -4032,8 +4038,6 @@ class AsyncElasticsearch(BaseClient):
4032
4038
  __query["human"] = human
4033
4039
  if pretty is not None:
4034
4040
  __query["pretty"] = pretty
4035
- if requests_per_second is not None:
4036
- __query["requests_per_second"] = requests_per_second
4037
4041
  __headers = {"accept": "application/json"}
4038
4042
  return await self.perform_request( # type: ignore[return-value]
4039
4043
  "POST",
@@ -4103,11 +4107,7 @@ class AsyncElasticsearch(BaseClient):
4103
4107
  __body["params"] = params
4104
4108
  if source is not None:
4105
4109
  __body["source"] = source
4106
- if not __body:
4107
- __body = None # type: ignore[assignment]
4108
- __headers = {"accept": "application/json"}
4109
- if __body is not None:
4110
- __headers["content-type"] = "application/json"
4110
+ __headers = {"accept": "application/json", "content-type": "application/json"}
4111
4111
  return await self.perform_request( # type: ignore[return-value]
4112
4112
  "POST",
4113
4113
  __path,
@@ -4121,7 +4121,7 @@ class AsyncElasticsearch(BaseClient):
4121
4121
  @_rewrite_parameters(
4122
4122
  body_fields=("context", "context_setup", "script"),
4123
4123
  )
4124
- @_stability_warning(Stability.EXPERIMENTAL)
4124
+ @_availability_warning(Stability.EXPERIMENTAL)
4125
4125
  async def scripts_painless_execute(
4126
4126
  self,
4127
4127
  *,
@@ -4190,11 +4190,7 @@ class AsyncElasticsearch(BaseClient):
4190
4190
  __body["context_setup"] = context_setup
4191
4191
  if script is not None:
4192
4192
  __body["script"] = script
4193
- if not __body:
4194
- __body = None # type: ignore[assignment]
4195
- __headers = {"accept": "application/json"}
4196
- if __body is not None:
4197
- __headers["content-type"] = "application/json"
4193
+ __headers = {"accept": "application/json", "content-type": "application/json"}
4198
4194
  return await self.perform_request( # type: ignore[return-value]
4199
4195
  "POST",
4200
4196
  __path,
@@ -5146,11 +5142,19 @@ class AsyncElasticsearch(BaseClient):
5146
5142
 
5147
5143
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-mvt>`_
5148
5144
 
5149
- :param index: Comma-separated list of data streams, indices, or aliases to search
5150
- :param field: Field containing geospatial data to return
5151
- :param zoom: Zoom level for the vector tile to search
5152
- :param x: X coordinate for the vector tile to search
5153
- :param y: Y coordinate for the vector tile to search
5145
+ :param index: A list of indices, data streams, or aliases to search. It supports
5146
+ wildcards (`*`). To search all data streams and indices, omit this parameter
5147
+ or use `*` or `_all`. To search a remote cluster, use the `<cluster>:<target>`
5148
+ syntax.
5149
+ :param field: A field that contains the geospatial data to return. It must be
5150
+ a `geo_point` or `geo_shape` field. The field must have doc values enabled.
5151
+ It cannot be a nested field. NOTE: Vector tiles do not natively support geometry
5152
+ collections. For `geometrycollection` values in a `geo_shape` field, the
5153
+ API returns a hits layer feature for each element of the collection. This
5154
+ behavior may change in a future release.
5155
+ :param zoom: The zoom level of the vector tile to search. It accepts `0` to `29`.
5156
+ :param x: The X coordinate for the vector tile to search.
5157
+ :param y: The Y coordinate for the vector tile to search.
5154
5158
  :param aggs: Sub-aggregations for the geotile_grid. It supports the following
5155
5159
  aggregation types: - `avg` - `boxplot` - `cardinality` - `extended stats`
5156
5160
  - `max` - `median absolute deviation` - `min` - `percentile` - `percentile-rank`
@@ -5625,11 +5629,7 @@ class AsyncElasticsearch(BaseClient):
5625
5629
  __body["string"] = string
5626
5630
  if timeout is not None:
5627
5631
  __body["timeout"] = timeout
5628
- if not __body:
5629
- __body = None # type: ignore[assignment]
5630
- __headers = {"accept": "application/json"}
5631
- if __body is not None:
5632
- __headers["content-type"] = "application/json"
5632
+ __headers = {"accept": "application/json", "content-type": "application/json"}
5633
5633
  return await self.perform_request( # type: ignore[return-value]
5634
5634
  "POST",
5635
5635
  __path,
@@ -6064,8 +6064,8 @@ class AsyncElasticsearch(BaseClient):
6064
6064
  """
6065
6065
  .. raw:: html
6066
6066
 
6067
- <p>Update documents.
6068
- Updates documents that match the specified query.
6067
+ <p>Update documents.</p>
6068
+ <p>Updates documents that match the specified query.
6069
6069
  If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.</p>
6070
6070
  <p>If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias:</p>
6071
6071
  <ul>
@@ -6344,11 +6344,11 @@ class AsyncElasticsearch(BaseClient):
6344
6344
  self,
6345
6345
  *,
6346
6346
  task_id: str,
6347
+ requests_per_second: float,
6347
6348
  error_trace: t.Optional[bool] = None,
6348
6349
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
6349
6350
  human: t.Optional[bool] = None,
6350
6351
  pretty: t.Optional[bool] = None,
6351
- requests_per_second: t.Optional[float] = None,
6352
6352
  ) -> ObjectApiResponse[t.Any]:
6353
6353
  """
6354
6354
  .. raw:: html
@@ -6366,9 +6366,13 @@ class AsyncElasticsearch(BaseClient):
6366
6366
  """
6367
6367
  if task_id in SKIP_IN_PATH:
6368
6368
  raise ValueError("Empty value passed for parameter 'task_id'")
6369
+ if requests_per_second is None:
6370
+ raise ValueError("Empty value passed for parameter 'requests_per_second'")
6369
6371
  __path_parts: t.Dict[str, str] = {"task_id": _quote(task_id)}
6370
6372
  __path = f'/_update_by_query/{__path_parts["task_id"]}/_rethrottle'
6371
6373
  __query: t.Dict[str, t.Any] = {}
6374
+ if requests_per_second is not None:
6375
+ __query["requests_per_second"] = requests_per_second
6372
6376
  if error_trace is not None:
6373
6377
  __query["error_trace"] = error_trace
6374
6378
  if filter_path is not None:
@@ -6377,8 +6381,6 @@ class AsyncElasticsearch(BaseClient):
6377
6381
  __query["human"] = human
6378
6382
  if pretty is not None:
6379
6383
  __query["pretty"] = pretty
6380
- if requests_per_second is not None:
6381
- __query["requests_per_second"] = requests_per_second
6382
6384
  __headers = {"accept": "application/json"}
6383
6385
  return await self.perform_request( # type: ignore[return-value]
6384
6386
  "POST",
@@ -357,7 +357,7 @@ class AsyncSearchClient(NamespacedClient):
357
357
  :param allow_partial_search_results: Indicate if an error should be returned
358
358
  if there is a partial search failure or timeout
359
359
  :param analyze_wildcard: Specify whether wildcard and prefix queries should be
360
- analyzed (default: false)
360
+ analyzed
361
361
  :param analyzer: The analyzer to use for the query string
362
362
  :param batched_reduce_size: Affects how often partial results become available,
363
363
  which happens whenever shard results are reduced. A partial reduction is
@@ -373,7 +373,7 @@ class AsyncSearchClient(NamespacedClient):
373
373
  values for field names matching these patterns in the hits.fields property
374
374
  of the response.
375
375
  :param expand_wildcards: Whether to expand wildcard expression to concrete indices
376
- that are open, closed or both.
376
+ that are open, closed or both
377
377
  :param explain: If true, returns detailed information about score computation
378
378
  as part of a hit.
379
379
  :param ext: Configuration of search extensions defined by Elasticsearch plugins.
@@ -406,7 +406,7 @@ class AsyncSearchClient(NamespacedClient):
406
406
  you cannot specify an <index> in the request path.
407
407
  :param post_filter:
408
408
  :param preference: Specify the node or shard the operation should be performed
409
- on (default: random)
409
+ on
410
410
  :param profile:
411
411
  :param q: Query in the Lucene query string syntax
412
412
  :param query: Defines the search definition using the Query DSL.
@@ -20,7 +20,11 @@ import typing as t
20
20
  from elastic_transport import ObjectApiResponse
21
21
 
22
22
  from ._base import NamespacedClient
23
- from .utils import SKIP_IN_PATH, _quote, _rewrite_parameters
23
+ from .utils import (
24
+ SKIP_IN_PATH,
25
+ _quote,
26
+ _rewrite_parameters,
27
+ )
24
28
 
25
29
 
26
30
  class AutoscalingClient(NamespacedClient):
@@ -46,7 +50,7 @@ class AutoscalingClient(NamespacedClient):
46
50
 
47
51
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-delete-autoscaling-policy>`_
48
52
 
49
- :param name: the name of the autoscaling policy
53
+ :param name: Name of the autoscaling policy
50
54
  :param master_timeout: Period to wait for a connection to the master node. If
51
55
  no response is received before the timeout expires, the request fails and
52
56
  returns an error.
@@ -153,7 +157,7 @@ class AutoscalingClient(NamespacedClient):
153
157
 
154
158
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-get-autoscaling-capacity>`_
155
159
 
156
- :param name: the name of the autoscaling policy
160
+ :param name: Name of the autoscaling policy
157
161
  :param master_timeout: Period to wait for a connection to the master node. If
158
162
  no response is received before the timeout expires, the request fails and
159
163
  returns an error.
@@ -208,7 +212,7 @@ class AutoscalingClient(NamespacedClient):
208
212
 
209
213
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-put-autoscaling-policy>`_
210
214
 
211
- :param name: the name of the autoscaling policy
215
+ :param name: Name of the autoscaling policy
212
216
  :param policy:
213
217
  :param master_timeout: Period to wait for a connection to the master node. If
214
218
  no response is received before the timeout expires, the request fails and
@@ -23,9 +23,9 @@ from ._base import NamespacedClient
23
23
  from .utils import (
24
24
  SKIP_IN_PATH,
25
25
  Stability,
26
+ _availability_warning,
26
27
  _quote,
27
28
  _rewrite_parameters,
28
- _stability_warning,
29
29
  )
30
30
 
31
31
 
@@ -3301,10 +3301,20 @@ class CatClient(NamespacedClient):
3301
3301
  self,
3302
3302
  *,
3303
3303
  index: t.Optional[t.Union[str, t.Sequence[str]]] = None,
3304
+ allow_closed: t.Optional[bool] = None,
3305
+ allow_no_indices: t.Optional[bool] = None,
3304
3306
  bytes: t.Optional[
3305
3307
  t.Union[str, t.Literal["b", "gb", "kb", "mb", "pb", "tb"]]
3306
3308
  ] = None,
3307
3309
  error_trace: t.Optional[bool] = None,
3310
+ expand_wildcards: t.Optional[
3311
+ t.Union[
3312
+ t.Sequence[
3313
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
3314
+ ],
3315
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
3316
+ ]
3317
+ ] = None,
3308
3318
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
3309
3319
  format: t.Optional[str] = None,
3310
3320
  h: t.Optional[
@@ -3355,6 +3365,8 @@ class CatClient(NamespacedClient):
3355
3365
  ] = None,
3356
3366
  help: t.Optional[bool] = None,
3357
3367
  human: t.Optional[bool] = None,
3368
+ ignore_throttled: t.Optional[bool] = None,
3369
+ ignore_unavailable: t.Optional[bool] = None,
3358
3370
  local: t.Optional[bool] = None,
3359
3371
  master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
3360
3372
  pretty: t.Optional[bool] = None,
@@ -3378,6 +3390,14 @@ class CatClient(NamespacedClient):
3378
3390
  :param index: A comma-separated list of data streams, indices, and aliases used
3379
3391
  to limit the request. Supports wildcards (`*`). To target all data streams
3380
3392
  and indices, omit this parameter or use `*` or `_all`.
3393
+ :param allow_closed: If true, allow closed indices to be returned in the response
3394
+ otherwise if false, keep the legacy behaviour of throwing an exception if
3395
+ index pattern matches closed indices
3396
+ :param allow_no_indices: If false, the request returns an error if any wildcard
3397
+ expression, index alias, or _all value targets only missing or closed indices.
3398
+ This behavior applies even if the request targets other open indices. For
3399
+ example, a request targeting foo*,bar* returns an error if an index starts
3400
+ with foo but no index starts with bar.
3381
3401
  :param bytes: Sets the units for columns that contain a byte-size value. Note
3382
3402
  that byte-size value units work in terms of powers of 1024. For instance
3383
3403
  `1kb` means 1024 bytes, not 1000 bytes. If omitted, byte-size values are
@@ -3386,12 +3406,20 @@ class CatClient(NamespacedClient):
3386
3406
  least `1.0`. If given, byte-size values are rendered as an integer with no
3387
3407
  suffix, representing the value of the column in the chosen unit. Values that
3388
3408
  are not an exact multiple of the chosen unit are rounded down.
3409
+ :param expand_wildcards: Type of index that wildcard expressions can match. If
3410
+ the request can target data streams, this argument determines whether wildcard
3411
+ expressions match hidden data streams. Supports comma-separated values, such
3412
+ as open,hidden.
3389
3413
  :param format: Specifies the format to return the columnar data in, can be set
3390
3414
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
3391
3415
  :param h: A comma-separated list of columns names to display. It supports simple
3392
3416
  wildcards.
3393
3417
  :param help: When set to `true` will output available columns. This option can't
3394
3418
  be combined with any other query string option.
3419
+ :param ignore_throttled: If true, concrete, expanded or aliased indices are ignored
3420
+ when frozen.
3421
+ :param ignore_unavailable: If true, missing or closed indices are not included
3422
+ in the response.
3395
3423
  :param local: If `true`, the request computes the list of selected nodes from
3396
3424
  the local cluster state. If `false` the list of selected nodes are computed
3397
3425
  from the cluster state of the master node. In both cases the coordinating
@@ -3416,10 +3444,16 @@ class CatClient(NamespacedClient):
3416
3444
  __path_parts = {}
3417
3445
  __path = "/_cat/segments"
3418
3446
  __query: t.Dict[str, t.Any] = {}
3447
+ if allow_closed is not None:
3448
+ __query["allow_closed"] = allow_closed
3449
+ if allow_no_indices is not None:
3450
+ __query["allow_no_indices"] = allow_no_indices
3419
3451
  if bytes is not None:
3420
3452
  __query["bytes"] = bytes
3421
3453
  if error_trace is not None:
3422
3454
  __query["error_trace"] = error_trace
3455
+ if expand_wildcards is not None:
3456
+ __query["expand_wildcards"] = expand_wildcards
3423
3457
  if filter_path is not None:
3424
3458
  __query["filter_path"] = filter_path
3425
3459
  if format is not None:
@@ -3430,6 +3464,10 @@ class CatClient(NamespacedClient):
3430
3464
  __query["help"] = help
3431
3465
  if human is not None:
3432
3466
  __query["human"] = human
3467
+ if ignore_throttled is not None:
3468
+ __query["ignore_throttled"] = ignore_throttled
3469
+ if ignore_unavailable is not None:
3470
+ __query["ignore_unavailable"] = ignore_unavailable
3433
3471
  if local is not None:
3434
3472
  __query["local"] = local
3435
3473
  if master_timeout is not None:
@@ -3861,7 +3899,7 @@ class CatClient(NamespacedClient):
3861
3899
  )
3862
3900
 
3863
3901
  @_rewrite_parameters()
3864
- @_stability_warning(Stability.EXPERIMENTAL)
3902
+ @_availability_warning(Stability.EXPERIMENTAL)
3865
3903
  async def tasks(
3866
3904
  self,
3867
3905
  *,
@@ -125,8 +125,8 @@ class CcrClient(NamespacedClient):
125
125
  """
126
126
  .. raw:: html
127
127
 
128
- <p>Create a follower.
129
- Create a cross-cluster replication follower index that follows a specific leader index.
128
+ <p>Create a follower.</p>
129
+ <p>Create a cross-cluster replication follower index that follows a specific leader index.
130
130
  When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index.</p>
131
131
 
132
132
 
@@ -368,8 +368,8 @@ class CcrClient(NamespacedClient):
368
368
  """
369
369
  .. raw:: html
370
370
 
371
- <p>Forget a follower.
372
- Remove the cross-cluster replication follower retention leases from the leader.</p>
371
+ <p>Forget a follower.</p>
372
+ <p>Remove the cross-cluster replication follower retention leases from the leader.</p>
373
373
  <p>A following index takes out retention leases on its leader index.
374
374
  These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication.
375
375
  When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed.
@@ -382,7 +382,7 @@ class CcrClient(NamespacedClient):
382
382
 
383
383
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-forget-follower>`_
384
384
 
385
- :param index: the name of the leader index for which specified follower retention
385
+ :param index: Name of the leader index for which specified follower retention
386
386
  leases should be removed
387
387
  :param follower_cluster:
388
388
  :param follower_index:
@@ -640,8 +640,8 @@ class CcrClient(NamespacedClient):
640
640
  """
641
641
  .. raw:: html
642
642
 
643
- <p>Create or update auto-follow patterns.
644
- Create a collection of cross-cluster replication auto-follow patterns for a remote cluster.
643
+ <p>Create or update auto-follow patterns.</p>
644
+ <p>Create a collection of cross-cluster replication auto-follow patterns for a remote cluster.
645
645
  Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices.
646
646
  Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern.</p>
647
647
  <p>This API can also be used to update auto-follow patterns.
@@ -853,8 +853,8 @@ class CcrClient(NamespacedClient):
853
853
  """
854
854
  .. raw:: html
855
855
 
856
- <p>Resume a follower.
857
- Resume a cross-cluster replication follower index that was paused.
856
+ <p>Resume a follower.</p>
857
+ <p>Resume a cross-cluster replication follower index that was paused.
858
858
  The follower index could have been paused with the pause follower API.
859
859
  Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks.
860
860
  When this API returns, the follower index will resume fetching operations from the leader index.</p>
@@ -862,7 +862,7 @@ class CcrClient(NamespacedClient):
862
862
 
863
863
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-resume-follow>`_
864
864
 
865
- :param index: The name of the follow index to resume following.
865
+ :param index: Name of the follow index to resume following
866
866
  :param master_timeout: Period to wait for a connection to the master node.
867
867
  :param max_outstanding_read_requests:
868
868
  :param max_outstanding_write_requests: