elasticsearch 8.15.1__py3-none-any.whl → 8.16.0__py3-none-any.whl

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 (94) hide show
  1. elasticsearch/_async/client/__init__.py +198 -117
  2. elasticsearch/_async/client/async_search.py +25 -25
  3. elasticsearch/_async/client/autoscaling.py +24 -11
  4. elasticsearch/_async/client/cat.py +75 -66
  5. elasticsearch/_async/client/ccr.py +13 -13
  6. elasticsearch/_async/client/cluster.py +40 -37
  7. elasticsearch/_async/client/connector.py +112 -51
  8. elasticsearch/_async/client/dangling_indices.py +27 -12
  9. elasticsearch/_async/client/enrich.py +10 -10
  10. elasticsearch/_async/client/eql.py +4 -4
  11. elasticsearch/_async/client/esql.py +42 -4
  12. elasticsearch/_async/client/features.py +4 -3
  13. elasticsearch/_async/client/fleet.py +10 -2
  14. elasticsearch/_async/client/graph.py +1 -1
  15. elasticsearch/_async/client/ilm.py +16 -12
  16. elasticsearch/_async/client/indices.py +176 -108
  17. elasticsearch/_async/client/inference.py +15 -5
  18. elasticsearch/_async/client/ingest.py +28 -12
  19. elasticsearch/_async/client/license.py +10 -10
  20. elasticsearch/_async/client/logstash.py +3 -3
  21. elasticsearch/_async/client/migration.py +3 -3
  22. elasticsearch/_async/client/ml.py +294 -291
  23. elasticsearch/_async/client/monitoring.py +1 -1
  24. elasticsearch/_async/client/nodes.py +16 -8
  25. elasticsearch/_async/client/query_rules.py +61 -8
  26. elasticsearch/_async/client/rollup.py +23 -9
  27. elasticsearch/_async/client/search_application.py +35 -16
  28. elasticsearch/_async/client/searchable_snapshots.py +13 -5
  29. elasticsearch/_async/client/security.py +371 -180
  30. elasticsearch/_async/client/slm.py +9 -9
  31. elasticsearch/_async/client/snapshot.py +97 -12
  32. elasticsearch/_async/client/sql.py +11 -7
  33. elasticsearch/_async/client/ssl.py +18 -3
  34. elasticsearch/_async/client/synonyms.py +7 -7
  35. elasticsearch/_async/client/tasks.py +19 -9
  36. elasticsearch/_async/client/text_structure.py +2 -2
  37. elasticsearch/_async/client/transform.py +78 -72
  38. elasticsearch/_async/client/utils.py +4 -0
  39. elasticsearch/_async/client/watcher.py +11 -11
  40. elasticsearch/_async/client/xpack.py +5 -3
  41. elasticsearch/_async/helpers.py +19 -10
  42. elasticsearch/_otel.py +2 -2
  43. elasticsearch/_sync/client/__init__.py +198 -117
  44. elasticsearch/_sync/client/async_search.py +25 -25
  45. elasticsearch/_sync/client/autoscaling.py +24 -11
  46. elasticsearch/_sync/client/cat.py +75 -66
  47. elasticsearch/_sync/client/ccr.py +13 -13
  48. elasticsearch/_sync/client/cluster.py +40 -37
  49. elasticsearch/_sync/client/connector.py +112 -51
  50. elasticsearch/_sync/client/dangling_indices.py +27 -12
  51. elasticsearch/_sync/client/enrich.py +10 -10
  52. elasticsearch/_sync/client/eql.py +4 -4
  53. elasticsearch/_sync/client/esql.py +42 -4
  54. elasticsearch/_sync/client/features.py +4 -3
  55. elasticsearch/_sync/client/fleet.py +10 -2
  56. elasticsearch/_sync/client/graph.py +1 -1
  57. elasticsearch/_sync/client/ilm.py +16 -12
  58. elasticsearch/_sync/client/indices.py +176 -108
  59. elasticsearch/_sync/client/inference.py +15 -5
  60. elasticsearch/_sync/client/ingest.py +28 -12
  61. elasticsearch/_sync/client/license.py +10 -10
  62. elasticsearch/_sync/client/logstash.py +3 -3
  63. elasticsearch/_sync/client/migration.py +3 -3
  64. elasticsearch/_sync/client/ml.py +294 -291
  65. elasticsearch/_sync/client/monitoring.py +1 -1
  66. elasticsearch/_sync/client/nodes.py +16 -8
  67. elasticsearch/_sync/client/query_rules.py +61 -8
  68. elasticsearch/_sync/client/rollup.py +23 -9
  69. elasticsearch/_sync/client/search_application.py +35 -16
  70. elasticsearch/_sync/client/searchable_snapshots.py +13 -5
  71. elasticsearch/_sync/client/security.py +371 -180
  72. elasticsearch/_sync/client/slm.py +9 -9
  73. elasticsearch/_sync/client/snapshot.py +97 -12
  74. elasticsearch/_sync/client/sql.py +11 -7
  75. elasticsearch/_sync/client/ssl.py +18 -3
  76. elasticsearch/_sync/client/synonyms.py +7 -7
  77. elasticsearch/_sync/client/tasks.py +19 -9
  78. elasticsearch/_sync/client/text_structure.py +2 -2
  79. elasticsearch/_sync/client/transform.py +78 -72
  80. elasticsearch/_sync/client/utils.py +40 -0
  81. elasticsearch/_sync/client/watcher.py +11 -11
  82. elasticsearch/_sync/client/xpack.py +5 -3
  83. elasticsearch/_version.py +1 -1
  84. elasticsearch/exceptions.py +4 -0
  85. elasticsearch/helpers/actions.py +19 -10
  86. elasticsearch/helpers/errors.py +12 -4
  87. elasticsearch/helpers/vectorstore/_async/strategies.py +30 -9
  88. elasticsearch/helpers/vectorstore/_sync/strategies.py +30 -9
  89. {elasticsearch-8.15.1.dist-info → elasticsearch-8.16.0.dist-info}/METADATA +5 -6
  90. elasticsearch-8.16.0.dist-info/RECORD +117 -0
  91. {elasticsearch-8.15.1.dist-info → elasticsearch-8.16.0.dist-info}/WHEEL +1 -1
  92. elasticsearch-8.15.1.dist-info/RECORD +0 -117
  93. {elasticsearch-8.15.1.dist-info → elasticsearch-8.16.0.dist-info}/licenses/LICENSE +0 -0
  94. {elasticsearch-8.15.1.dist-info → elasticsearch-8.16.0.dist-info}/licenses/NOTICE +0 -0
@@ -46,7 +46,7 @@ class ClusterClient(NamespacedClient):
46
46
  """
47
47
  Provides explanations for shard allocations in the cluster.
48
48
 
49
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-allocation-explain.html>`_
49
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-allocation-explain.html>`_
50
50
 
51
51
  :param current_node: Specifies the node ID or the name of the node to only explain
52
52
  a shard that is currently located on the specified node.
@@ -113,10 +113,11 @@ class ClusterClient(NamespacedClient):
113
113
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
114
114
  ) -> ObjectApiResponse[t.Any]:
115
115
  """
116
- Deletes component templates. Component templates are building blocks for constructing
117
- index templates that specify index mappings, settings, and aliases.
116
+ Delete component templates. Deletes component templates. Component templates
117
+ are building blocks for constructing index templates that specify index mappings,
118
+ settings, and aliases.
118
119
 
119
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/indices-component-template.html>`_
120
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
120
121
 
121
122
  :param name: Comma-separated list or wildcard expression of component template
122
123
  names used to limit the request.
@@ -166,7 +167,7 @@ class ClusterClient(NamespacedClient):
166
167
  """
167
168
  Clears cluster voting config exclusions.
168
169
 
169
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/voting-config-exclusions.html>`_
170
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/voting-config-exclusions.html>`_
170
171
 
171
172
  :param wait_for_removal: Specifies whether to wait for all excluded nodes to
172
173
  be removed from the cluster before clearing the voting configuration exclusions
@@ -211,9 +212,10 @@ class ClusterClient(NamespacedClient):
211
212
  pretty: t.Optional[bool] = None,
212
213
  ) -> HeadApiResponse:
213
214
  """
214
- Returns information about whether a particular component template exist
215
+ Check component templates. Returns information about whether a particular component
216
+ template exists.
215
217
 
216
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/indices-component-template.html>`_
218
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
217
219
 
218
220
  :param name: Comma-separated list of component template names used to limit the
219
221
  request. Wildcard (*) expressions are supported.
@@ -266,9 +268,9 @@ class ClusterClient(NamespacedClient):
266
268
  pretty: t.Optional[bool] = None,
267
269
  ) -> ObjectApiResponse[t.Any]:
268
270
  """
269
- Retrieves information about component templates.
271
+ Get component templates. Retrieves information about component templates.
270
272
 
271
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/indices-component-template.html>`_
273
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
272
274
 
273
275
  :param name: Comma-separated list of component template names used to limit the
274
276
  request. Wildcard (`*`) expressions are supported.
@@ -332,7 +334,7 @@ class ClusterClient(NamespacedClient):
332
334
  Returns cluster-wide settings. By default, it returns only settings that have
333
335
  been explicitly defined.
334
336
 
335
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-get-settings.html>`_
337
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-get-settings.html>`_
336
338
 
337
339
  :param flat_settings: If `true`, returns settings in flat format.
338
340
  :param include_defaults: If `true`, returns default cluster settings from the
@@ -422,7 +424,7 @@ class ClusterClient(NamespacedClient):
422
424
  by the worst shard status. The cluster status is controlled by the worst index
423
425
  status.
424
426
 
425
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-health.html>`_
427
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-health.html>`_
426
428
 
427
429
  :param index: Comma-separated list of data streams, indices, and index aliases
428
430
  used to limit the request. Wildcard expressions (`*`) are supported. To target
@@ -524,9 +526,9 @@ class ClusterClient(NamespacedClient):
524
526
  pretty: t.Optional[bool] = None,
525
527
  ) -> ObjectApiResponse[t.Any]:
526
528
  """
527
- Returns different information about the cluster.
529
+ Get cluster info. Returns basic information about the cluster.
528
530
 
529
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-info.html>`_
531
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-info.html>`_
530
532
 
531
533
  :param target: Limits the information returned to the specific target. Supports
532
534
  a comma-separated list, such as http,ingest.
@@ -575,7 +577,7 @@ class ClusterClient(NamespacedClient):
575
577
  update, the activity of this task might be reported by both task api and pending
576
578
  cluster tasks API.
577
579
 
578
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-pending.html>`_
580
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-pending.html>`_
579
581
 
580
582
  :param local: If `true`, the request retrieves information from the local node
581
583
  only. If `false`, information is retrieved from the master node.
@@ -623,7 +625,7 @@ class ClusterClient(NamespacedClient):
623
625
  """
624
626
  Updates the cluster voting config exclusions by node ids or node names.
625
627
 
626
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/voting-config-exclusions.html>`_
628
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/voting-config-exclusions.html>`_
627
629
 
628
630
  :param node_ids: A comma-separated list of the persistent ids of the nodes to
629
631
  exclude from the voting configuration. If specified, you may not also specify
@@ -683,24 +685,25 @@ class ClusterClient(NamespacedClient):
683
685
  body: t.Optional[t.Dict[str, t.Any]] = None,
684
686
  ) -> ObjectApiResponse[t.Any]:
685
687
  """
686
- Creates or updates a component template. Component templates are building blocks
687
- for constructing index templates that specify index mappings, settings, and aliases.
688
- An index template can be composed of multiple component templates. To use a component
689
- template, specify it in an index template’s `composed_of` list. Component templates
690
- are only applied to new data streams and indices as part of a matching index
691
- template. Settings and mappings specified directly in the index template or the
692
- create index request override any settings or mappings specified in a component
693
- template. Component templates are only used during index creation. For data streams,
694
- this includes data stream creation and the creation of a stream’s backing indices.
695
- Changes to component templates do not affect existing indices, including a stream’s
696
- backing indices. You can use C-style `/* *\\/` block comments in component templates.
688
+ Create or update a component template. Creates or updates a component template.
689
+ Component templates are building blocks for constructing index templates that
690
+ specify index mappings, settings, and aliases. An index template can be composed
691
+ of multiple component templates. To use a component template, specify it in an
692
+ index template’s `composed_of` list. Component templates are only applied to
693
+ new data streams and indices as part of a matching index template. Settings and
694
+ mappings specified directly in the index template or the create index request
695
+ override any settings or mappings specified in a component template. Component
696
+ templates are only used during index creation. For data streams, this includes
697
+ data stream creation and the creation of a stream’s backing indices. Changes
698
+ to component templates do not affect existing indices, including a stream’s backing
699
+ indices. You can use C-style `/* *\\/` block comments in component templates.
697
700
  You can include comments anywhere in the request body except before the opening
698
701
  curly bracket.
699
702
 
700
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/indices-component-template.html>`_
703
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/indices-component-template.html>`_
701
704
 
702
705
  :param name: Name of the component template to create. Elasticsearch includes
703
- the following built-in component templates: `logs-mappings`; 'logs-settings`;
706
+ the following built-in component templates: `logs-mappings`; `logs-settings`;
704
707
  `metrics-mappings`; `metrics-settings`;`synthetics-mapping`; `synthetics-settings`.
705
708
  Elastic Agent uses these templates to configure backing indices for its data
706
709
  streams. If you use Elastic Agent and want to overwrite one of these templates,
@@ -786,7 +789,7 @@ class ClusterClient(NamespacedClient):
786
789
  """
787
790
  Updates the cluster settings.
788
791
 
789
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-update-settings.html>`_
792
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-update-settings.html>`_
790
793
 
791
794
  :param flat_settings: Return settings in flat format (default: false)
792
795
  :param master_timeout: Explicit operation timeout for connection to master node
@@ -842,7 +845,7 @@ class ClusterClient(NamespacedClient):
842
845
  cluster information. It returns connection and endpoint information keyed by
843
846
  the configured remote cluster alias.
844
847
 
845
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-remote-info.html>`_
848
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-remote-info.html>`_
846
849
  """
847
850
  __path_parts: t.Dict[str, str] = {}
848
851
  __path = "/_remote/info"
@@ -887,7 +890,7 @@ class ClusterClient(NamespacedClient):
887
890
  """
888
891
  Allows to manually change the allocation of individual shards in the cluster.
889
892
 
890
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-reroute.html>`_
893
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-reroute.html>`_
891
894
 
892
895
  :param commands: Defines the commands to perform.
893
896
  :param dry_run: If true, then the request simulates the operation only and returns
@@ -974,7 +977,7 @@ class ClusterClient(NamespacedClient):
974
977
  """
975
978
  Returns a comprehensive information about the state of the cluster.
976
979
 
977
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-state.html>`_
980
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-state.html>`_
978
981
 
979
982
  :param metric: Limit the information returned to the specified metrics
980
983
  :param index: A comma-separated list of index names; use `_all` or empty string
@@ -1050,8 +1053,8 @@ class ClusterClient(NamespacedClient):
1050
1053
  node_id: t.Optional[t.Union[str, t.Sequence[str]]] = None,
1051
1054
  error_trace: t.Optional[bool] = None,
1052
1055
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
1053
- flat_settings: t.Optional[bool] = None,
1054
1056
  human: t.Optional[bool] = None,
1057
+ include_remotes: t.Optional[bool] = None,
1055
1058
  pretty: t.Optional[bool] = None,
1056
1059
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
1057
1060
  ) -> ObjectApiResponse[t.Any]:
@@ -1060,11 +1063,11 @@ class ClusterClient(NamespacedClient):
1060
1063
  size, memory usage) and information about the current nodes that form the cluster
1061
1064
  (number, roles, os, jvm versions, memory usage, cpu and installed plugins).
1062
1065
 
1063
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cluster-stats.html>`_
1066
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/cluster-stats.html>`_
1064
1067
 
1065
1068
  :param node_id: Comma-separated list of node filters used to limit returned information.
1066
1069
  Defaults to all nodes in the cluster.
1067
- :param flat_settings: If `true`, returns settings in flat format.
1070
+ :param include_remotes: Include remote cluster data into the response
1068
1071
  :param timeout: Period to wait for each node to respond. If a node does not respond
1069
1072
  before its timeout expires, the response does not include its stats. However,
1070
1073
  timed out nodes are included in the response’s `_nodes.failed` property.
@@ -1082,10 +1085,10 @@ class ClusterClient(NamespacedClient):
1082
1085
  __query["error_trace"] = error_trace
1083
1086
  if filter_path is not None:
1084
1087
  __query["filter_path"] = filter_path
1085
- if flat_settings is not None:
1086
- __query["flat_settings"] = flat_settings
1087
1088
  if human is not None:
1088
1089
  __query["human"] = human
1090
+ if include_remotes is not None:
1091
+ __query["include_remotes"] = include_remotes
1089
1092
  if pretty is not None:
1090
1093
  __query["pretty"] = pretty
1091
1094
  if timeout is not None: