elasticsearch 8.19.2__py3-none-any.whl → 8.19.3__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 (98) hide show
  1. elasticsearch/_async/client/__init__.py +39 -18
  2. elasticsearch/_async/client/async_search.py +3 -3
  3. elasticsearch/_async/client/autoscaling.py +8 -4
  4. elasticsearch/_async/client/cat.py +40 -2
  5. elasticsearch/_async/client/ccr.py +2 -2
  6. elasticsearch/_async/client/cluster.py +10 -9
  7. elasticsearch/_async/client/connector.py +34 -33
  8. elasticsearch/_async/client/dangling_indices.py +6 -10
  9. elasticsearch/_async/client/eql.py +2 -2
  10. elasticsearch/_async/client/esql.py +1 -1
  11. elasticsearch/_async/client/features.py +2 -2
  12. elasticsearch/_async/client/fleet.py +3 -3
  13. elasticsearch/_async/client/indices.py +235 -25
  14. elasticsearch/_async/client/ingest.py +1 -1
  15. elasticsearch/_async/client/license.py +3 -5
  16. elasticsearch/_async/client/ml.py +61 -21
  17. elasticsearch/_async/client/monitoring.py +2 -1
  18. elasticsearch/_async/client/nodes.py +7 -7
  19. elasticsearch/_async/client/rollup.py +9 -9
  20. elasticsearch/_async/client/search_application.py +11 -11
  21. elasticsearch/_async/client/searchable_snapshots.py +4 -4
  22. elasticsearch/_async/client/security.py +4 -4
  23. elasticsearch/_async/client/shutdown.py +7 -2
  24. elasticsearch/_async/client/simulate.py +2 -2
  25. elasticsearch/_async/client/slm.py +1 -1
  26. elasticsearch/_async/client/snapshot.py +3 -2
  27. elasticsearch/_async/client/streams.py +6 -6
  28. elasticsearch/_async/client/tasks.py +4 -4
  29. elasticsearch/_async/client/text_structure.py +5 -1
  30. elasticsearch/_async/client/transform.py +37 -0
  31. elasticsearch/_async/client/utils.py +4 -2
  32. elasticsearch/_async/client/watcher.py +2 -2
  33. elasticsearch/_async/client/xpack.py +2 -1
  34. elasticsearch/_sync/client/__init__.py +41 -18
  35. elasticsearch/_sync/client/async_search.py +3 -3
  36. elasticsearch/_sync/client/autoscaling.py +8 -4
  37. elasticsearch/_sync/client/cat.py +40 -2
  38. elasticsearch/_sync/client/ccr.py +2 -2
  39. elasticsearch/_sync/client/cluster.py +10 -9
  40. elasticsearch/_sync/client/connector.py +34 -33
  41. elasticsearch/_sync/client/dangling_indices.py +6 -10
  42. elasticsearch/_sync/client/eql.py +2 -2
  43. elasticsearch/_sync/client/esql.py +1 -1
  44. elasticsearch/_sync/client/features.py +2 -2
  45. elasticsearch/_sync/client/fleet.py +3 -3
  46. elasticsearch/_sync/client/indices.py +235 -25
  47. elasticsearch/_sync/client/ingest.py +1 -1
  48. elasticsearch/_sync/client/license.py +3 -5
  49. elasticsearch/_sync/client/ml.py +61 -21
  50. elasticsearch/_sync/client/monitoring.py +2 -1
  51. elasticsearch/_sync/client/nodes.py +7 -7
  52. elasticsearch/_sync/client/rollup.py +9 -9
  53. elasticsearch/_sync/client/search_application.py +11 -11
  54. elasticsearch/_sync/client/searchable_snapshots.py +4 -4
  55. elasticsearch/_sync/client/security.py +4 -4
  56. elasticsearch/_sync/client/shutdown.py +7 -2
  57. elasticsearch/_sync/client/simulate.py +2 -2
  58. elasticsearch/_sync/client/slm.py +1 -1
  59. elasticsearch/_sync/client/snapshot.py +3 -2
  60. elasticsearch/_sync/client/streams.py +6 -6
  61. elasticsearch/_sync/client/tasks.py +4 -4
  62. elasticsearch/_sync/client/text_structure.py +5 -1
  63. elasticsearch/_sync/client/transform.py +37 -0
  64. elasticsearch/_sync/client/utils.py +16 -2
  65. elasticsearch/_sync/client/watcher.py +2 -2
  66. elasticsearch/_sync/client/xpack.py +2 -1
  67. elasticsearch/_version.py +2 -2
  68. elasticsearch/dsl/_async/document.py +4 -5
  69. elasticsearch/dsl/_async/index.py +1 -1
  70. elasticsearch/dsl/_async/search.py +2 -3
  71. elasticsearch/dsl/_sync/document.py +4 -5
  72. elasticsearch/dsl/_sync/index.py +1 -1
  73. elasticsearch/dsl/_sync/search.py +2 -3
  74. elasticsearch/dsl/aggs.py +7 -7
  75. elasticsearch/dsl/async_connections.py +1 -2
  76. elasticsearch/dsl/connections.py +1 -2
  77. elasticsearch/dsl/document_base.py +1 -1
  78. elasticsearch/dsl/query.py +23 -0
  79. elasticsearch/dsl/serializer.py +1 -2
  80. elasticsearch/dsl/types.py +2 -0
  81. elasticsearch/dsl/utils.py +1 -2
  82. elasticsearch/esql/esql.py +1 -1
  83. elasticsearch/esql/functions.py +2 -2
  84. elasticsearch/helpers/vectorstore/__init__.py +7 -7
  85. elasticsearch/helpers/vectorstore/_async/_utils.py +1 -1
  86. elasticsearch/helpers/vectorstore/_async/embedding_service.py +2 -2
  87. elasticsearch/helpers/vectorstore/_async/strategies.py +3 -3
  88. elasticsearch/helpers/vectorstore/_async/vectorstore.py +5 -5
  89. elasticsearch/helpers/vectorstore/_sync/_utils.py +1 -1
  90. elasticsearch/helpers/vectorstore/_sync/embedding_service.py +2 -2
  91. elasticsearch/helpers/vectorstore/_sync/strategies.py +3 -3
  92. elasticsearch/helpers/vectorstore/_sync/vectorstore.py +5 -5
  93. {elasticsearch-8.19.2.dist-info → elasticsearch-8.19.3.dist-info}/METADATA +1 -1
  94. elasticsearch-8.19.3.dist-info/RECORD +166 -0
  95. {elasticsearch-8.19.2.dist-info → elasticsearch-8.19.3.dist-info}/WHEEL +1 -1
  96. elasticsearch-8.19.2.dist-info/RECORD +0 -166
  97. {elasticsearch-8.19.2.dist-info → elasticsearch-8.19.3.dist-info}/licenses/LICENSE +0 -0
  98. {elasticsearch-8.19.2.dist-info → elasticsearch-8.19.3.dist-info}/licenses/NOTICE +0 -0
@@ -85,9 +85,9 @@ from .utils import (
85
85
  CLIENT_META_SERVICE,
86
86
  SKIP_IN_PATH,
87
87
  Stability,
88
+ _availability_warning,
88
89
  _quote,
89
90
  _rewrite_parameters,
90
- _stability_warning,
91
91
  client_node_configs,
92
92
  is_requests_http_auth,
93
93
  is_requests_node_class,
@@ -594,6 +594,7 @@ class Elasticsearch(BaseClient):
594
594
  """
595
595
  __path = "/"
596
596
  __query: t.Dict[str, t.Any] = {}
597
+ __path_parts: t.Dict[str, str] = {}
597
598
  if error_trace is not None:
598
599
  __query["error_trace"] = error_trace
599
600
  if filter_path is not None:
@@ -604,7 +605,14 @@ class Elasticsearch(BaseClient):
604
605
  __query["pretty"] = pretty
605
606
  __headers = {"accept": "application/json"}
606
607
  try:
607
- self.perform_request("HEAD", __path, params=__query, headers=__headers)
608
+ self.perform_request(
609
+ "HEAD",
610
+ __path,
611
+ params=__query,
612
+ headers=__headers,
613
+ endpoint_id="ping",
614
+ path_parts=__path_parts,
615
+ )
608
616
  return True
609
617
  except (ApiError, TransportError):
610
618
  return False
@@ -698,6 +706,7 @@ class Elasticsearch(BaseClient):
698
706
  <li>Perl: Check out <code>Search::Elasticsearch::Client::5_0::Bulk</code> and <code>Search::Elasticsearch::Client::5_0::Scroll</code></li>
699
707
  <li>Python: Check out <code>elasticsearch.helpers.*</code></li>
700
708
  <li>JavaScript: Check out <code>client.helpers.*</code></li>
709
+ <li>Java: Check out <code>co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester</code></li>
701
710
  <li>.NET: Check out <code>BulkAllObservable</code></li>
702
711
  <li>PHP: Check out bulk indexing.</li>
703
712
  <li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
@@ -1721,11 +1730,11 @@ class Elasticsearch(BaseClient):
1721
1730
  self,
1722
1731
  *,
1723
1732
  task_id: t.Union[int, str],
1733
+ requests_per_second: float,
1724
1734
  error_trace: t.Optional[bool] = None,
1725
1735
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
1726
1736
  human: t.Optional[bool] = None,
1727
1737
  pretty: t.Optional[bool] = None,
1728
- requests_per_second: t.Optional[float] = None,
1729
1738
  ) -> ObjectApiResponse[t.Any]:
1730
1739
  """
1731
1740
  .. raw:: html
@@ -1743,9 +1752,13 @@ class Elasticsearch(BaseClient):
1743
1752
  """
1744
1753
  if task_id in SKIP_IN_PATH:
1745
1754
  raise ValueError("Empty value passed for parameter 'task_id'")
1755
+ if requests_per_second is None:
1756
+ raise ValueError("Empty value passed for parameter 'requests_per_second'")
1746
1757
  __path_parts: t.Dict[str, str] = {"task_id": _quote(task_id)}
1747
1758
  __path = f'/_delete_by_query/{__path_parts["task_id"]}/_rethrottle'
1748
1759
  __query: t.Dict[str, t.Any] = {}
1760
+ if requests_per_second is not None:
1761
+ __query["requests_per_second"] = requests_per_second
1749
1762
  if error_trace is not None:
1750
1763
  __query["error_trace"] = error_trace
1751
1764
  if filter_path is not None:
@@ -1754,8 +1767,6 @@ class Elasticsearch(BaseClient):
1754
1767
  __query["human"] = human
1755
1768
  if pretty is not None:
1756
1769
  __query["pretty"] = pretty
1757
- if requests_per_second is not None:
1758
- __query["requests_per_second"] = requests_per_second
1759
1770
  __headers = {"accept": "application/json"}
1760
1771
  return self.perform_request( # type: ignore[return-value]
1761
1772
  "POST",
@@ -3086,7 +3097,7 @@ class Elasticsearch(BaseClient):
3086
3097
  ),
3087
3098
  parameter_aliases={"_source": "source"},
3088
3099
  )
3089
- @_stability_warning(Stability.EXPERIMENTAL)
3100
+ @_availability_warning(Stability.EXPERIMENTAL)
3090
3101
  def knn_search(
3091
3102
  self,
3092
3103
  *,
@@ -4285,11 +4296,11 @@ class Elasticsearch(BaseClient):
4285
4296
  self,
4286
4297
  *,
4287
4298
  task_id: str,
4299
+ requests_per_second: float,
4288
4300
  error_trace: t.Optional[bool] = None,
4289
4301
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
4290
4302
  human: t.Optional[bool] = None,
4291
4303
  pretty: t.Optional[bool] = None,
4292
- requests_per_second: t.Optional[float] = None,
4293
4304
  ) -> ObjectApiResponse[t.Any]:
4294
4305
  """
4295
4306
  .. raw:: html
@@ -4313,9 +4324,13 @@ class Elasticsearch(BaseClient):
4313
4324
  """
4314
4325
  if task_id in SKIP_IN_PATH:
4315
4326
  raise ValueError("Empty value passed for parameter 'task_id'")
4327
+ if requests_per_second is None:
4328
+ raise ValueError("Empty value passed for parameter 'requests_per_second'")
4316
4329
  __path_parts: t.Dict[str, str] = {"task_id": _quote(task_id)}
4317
4330
  __path = f'/_reindex/{__path_parts["task_id"]}/_rethrottle'
4318
4331
  __query: t.Dict[str, t.Any] = {}
4332
+ if requests_per_second is not None:
4333
+ __query["requests_per_second"] = requests_per_second
4319
4334
  if error_trace is not None:
4320
4335
  __query["error_trace"] = error_trace
4321
4336
  if filter_path is not None:
@@ -4324,8 +4339,6 @@ class Elasticsearch(BaseClient):
4324
4339
  __query["human"] = human
4325
4340
  if pretty is not None:
4326
4341
  __query["pretty"] = pretty
4327
- if requests_per_second is not None:
4328
- __query["requests_per_second"] = requests_per_second
4329
4342
  __headers = {"accept": "application/json"}
4330
4343
  return self.perform_request( # type: ignore[return-value]
4331
4344
  "POST",
@@ -4409,7 +4422,7 @@ class Elasticsearch(BaseClient):
4409
4422
  @_rewrite_parameters(
4410
4423
  body_fields=("context", "context_setup", "script"),
4411
4424
  )
4412
- @_stability_warning(Stability.EXPERIMENTAL)
4425
+ @_availability_warning(Stability.EXPERIMENTAL)
4413
4426
  def scripts_painless_execute(
4414
4427
  self,
4415
4428
  *,
@@ -5478,11 +5491,19 @@ class Elasticsearch(BaseClient):
5478
5491
 
5479
5492
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/search-vector-tile-api.html>`_
5480
5493
 
5481
- :param index: Comma-separated list of data streams, indices, or aliases to search
5482
- :param field: Field containing geospatial data to return
5483
- :param zoom: Zoom level for the vector tile to search
5484
- :param x: X coordinate for the vector tile to search
5485
- :param y: Y coordinate for the vector tile to search
5494
+ :param index: A list of indices, data streams, or aliases to search. It supports
5495
+ wildcards (`*`). To search all data streams and indices, omit this parameter
5496
+ or use `*` or `_all`. To search a remote cluster, use the `<cluster>:<target>`
5497
+ syntax.
5498
+ :param field: A field that contains the geospatial data to return. It must be
5499
+ a `geo_point` or `geo_shape` field. The field must have doc values enabled.
5500
+ It cannot be a nested field. NOTE: Vector tiles do not natively support geometry
5501
+ collections. For `geometrycollection` values in a `geo_shape` field, the
5502
+ API returns a hits layer feature for each element of the collection. This
5503
+ behavior may change in a future release.
5504
+ :param zoom: The zoom level of the vector tile to search. It accepts `0` to `29`.
5505
+ :param x: The X coordinate for the vector tile to search.
5506
+ :param y: The Y coordinate for the vector tile to search.
5486
5507
  :param aggs: Sub-aggregations for the geotile_grid. It supports the following
5487
5508
  aggregation types: - `avg` - `boxplot` - `cardinality` - `extended stats`
5488
5509
  - `max` - `median absolute deviation` - `min` - `percentile` - `percentile-rank`
@@ -6662,11 +6683,11 @@ class Elasticsearch(BaseClient):
6662
6683
  self,
6663
6684
  *,
6664
6685
  task_id: str,
6686
+ requests_per_second: float,
6665
6687
  error_trace: t.Optional[bool] = None,
6666
6688
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
6667
6689
  human: t.Optional[bool] = None,
6668
6690
  pretty: t.Optional[bool] = None,
6669
- requests_per_second: t.Optional[float] = None,
6670
6691
  ) -> ObjectApiResponse[t.Any]:
6671
6692
  """
6672
6693
  .. raw:: html
@@ -6684,9 +6705,13 @@ class Elasticsearch(BaseClient):
6684
6705
  """
6685
6706
  if task_id in SKIP_IN_PATH:
6686
6707
  raise ValueError("Empty value passed for parameter 'task_id'")
6708
+ if requests_per_second is None:
6709
+ raise ValueError("Empty value passed for parameter 'requests_per_second'")
6687
6710
  __path_parts: t.Dict[str, str] = {"task_id": _quote(task_id)}
6688
6711
  __path = f'/_update_by_query/{__path_parts["task_id"]}/_rethrottle'
6689
6712
  __query: t.Dict[str, t.Any] = {}
6713
+ if requests_per_second is not None:
6714
+ __query["requests_per_second"] = requests_per_second
6690
6715
  if error_trace is not None:
6691
6716
  __query["error_trace"] = error_trace
6692
6717
  if filter_path is not None:
@@ -6695,8 +6720,6 @@ class Elasticsearch(BaseClient):
6695
6720
  __query["human"] = human
6696
6721
  if pretty is not None:
6697
6722
  __query["pretty"] = pretty
6698
- if requests_per_second is not None:
6699
- __query["requests_per_second"] = requests_per_second
6700
6723
  __headers = {"accept": "application/json"}
6701
6724
  return self.perform_request( # type: ignore[return-value]
6702
6725
  "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/guide/en/elasticsearch/reference/8.19/autoscaling-delete-autoscaling-policy.html>`_
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/guide/en/elasticsearch/reference/8.19/autoscaling-get-autoscaling-capacity.html>`_
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/guide/en/elasticsearch/reference/8.19/autoscaling-put-autoscaling-policy.html>`_
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
 
@@ -2895,10 +2895,20 @@ class CatClient(NamespacedClient):
2895
2895
  self,
2896
2896
  *,
2897
2897
  index: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2898
+ allow_closed: t.Optional[bool] = None,
2899
+ allow_no_indices: t.Optional[bool] = None,
2898
2900
  bytes: t.Optional[
2899
2901
  t.Union[str, t.Literal["b", "gb", "kb", "mb", "pb", "tb"]]
2900
2902
  ] = None,
2901
2903
  error_trace: t.Optional[bool] = None,
2904
+ expand_wildcards: t.Optional[
2905
+ t.Union[
2906
+ t.Sequence[
2907
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
2908
+ ],
2909
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
2910
+ ]
2911
+ ] = None,
2902
2912
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2903
2913
  format: t.Optional[str] = None,
2904
2914
  h: t.Optional[
@@ -2949,6 +2959,8 @@ class CatClient(NamespacedClient):
2949
2959
  ] = None,
2950
2960
  help: t.Optional[bool] = None,
2951
2961
  human: t.Optional[bool] = None,
2962
+ ignore_throttled: t.Optional[bool] = None,
2963
+ ignore_unavailable: t.Optional[bool] = None,
2952
2964
  local: t.Optional[bool] = None,
2953
2965
  master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
2954
2966
  pretty: t.Optional[bool] = None,
@@ -2972,6 +2984,14 @@ class CatClient(NamespacedClient):
2972
2984
  :param index: A comma-separated list of data streams, indices, and aliases used
2973
2985
  to limit the request. Supports wildcards (`*`). To target all data streams
2974
2986
  and indices, omit this parameter or use `*` or `_all`.
2987
+ :param allow_closed: If true, allow closed indices to be returned in the response
2988
+ otherwise if false, keep the legacy behaviour of throwing an exception if
2989
+ index pattern matches closed indices
2990
+ :param allow_no_indices: If false, the request returns an error if any wildcard
2991
+ expression, index alias, or _all value targets only missing or closed indices.
2992
+ This behavior applies even if the request targets other open indices. For
2993
+ example, a request targeting foo*,bar* returns an error if an index starts
2994
+ with foo but no index starts with bar.
2975
2995
  :param bytes: Sets the units for columns that contain a byte-size value. Note
2976
2996
  that byte-size value units work in terms of powers of 1024. For instance
2977
2997
  `1kb` means 1024 bytes, not 1000 bytes. If omitted, byte-size values are
@@ -2980,12 +3000,20 @@ class CatClient(NamespacedClient):
2980
3000
  least `1.0`. If given, byte-size values are rendered as an integer with no
2981
3001
  suffix, representing the value of the column in the chosen unit. Values that
2982
3002
  are not an exact multiple of the chosen unit are rounded down.
3003
+ :param expand_wildcards: Type of index that wildcard expressions can match. If
3004
+ the request can target data streams, this argument determines whether wildcard
3005
+ expressions match hidden data streams. Supports comma-separated values, such
3006
+ as open,hidden.
2983
3007
  :param format: Specifies the format to return the columnar data in, can be set
2984
3008
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
2985
3009
  :param h: A comma-separated list of columns names to display. It supports simple
2986
3010
  wildcards.
2987
3011
  :param help: When set to `true` will output available columns. This option can't
2988
3012
  be combined with any other query string option.
3013
+ :param ignore_throttled: If true, concrete, expanded or aliased indices are ignored
3014
+ when frozen.
3015
+ :param ignore_unavailable: If true, missing or closed indices are not included
3016
+ in the response.
2989
3017
  :param local: If `true`, the request computes the list of selected nodes from
2990
3018
  the local cluster state. If `false` the list of selected nodes are computed
2991
3019
  from the cluster state of the master node. In both cases the coordinating
@@ -3010,10 +3038,16 @@ class CatClient(NamespacedClient):
3010
3038
  __path_parts = {}
3011
3039
  __path = "/_cat/segments"
3012
3040
  __query: t.Dict[str, t.Any] = {}
3041
+ if allow_closed is not None:
3042
+ __query["allow_closed"] = allow_closed
3043
+ if allow_no_indices is not None:
3044
+ __query["allow_no_indices"] = allow_no_indices
3013
3045
  if bytes is not None:
3014
3046
  __query["bytes"] = bytes
3015
3047
  if error_trace is not None:
3016
3048
  __query["error_trace"] = error_trace
3049
+ if expand_wildcards is not None:
3050
+ __query["expand_wildcards"] = expand_wildcards
3017
3051
  if filter_path is not None:
3018
3052
  __query["filter_path"] = filter_path
3019
3053
  if format is not None:
@@ -3024,6 +3058,10 @@ class CatClient(NamespacedClient):
3024
3058
  __query["help"] = help
3025
3059
  if human is not None:
3026
3060
  __query["human"] = human
3061
+ if ignore_throttled is not None:
3062
+ __query["ignore_throttled"] = ignore_throttled
3063
+ if ignore_unavailable is not None:
3064
+ __query["ignore_unavailable"] = ignore_unavailable
3027
3065
  if local is not None:
3028
3066
  __query["local"] = local
3029
3067
  if master_timeout is not None:
@@ -3455,7 +3493,7 @@ class CatClient(NamespacedClient):
3455
3493
  )
3456
3494
 
3457
3495
  @_rewrite_parameters()
3458
- @_stability_warning(Stability.EXPERIMENTAL)
3496
+ @_availability_warning(Stability.EXPERIMENTAL)
3459
3497
  def tasks(
3460
3498
  self,
3461
3499
  *,
@@ -382,7 +382,7 @@ class CcrClient(NamespacedClient):
382
382
 
383
383
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-post-forget-follower.html>`_
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:
@@ -862,7 +862,7 @@ class CcrClient(NamespacedClient):
862
862
 
863
863
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ccr-post-resume-follow.html>`_
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:
@@ -305,7 +305,7 @@ class ClusterClient(NamespacedClient):
305
305
  request. Wildcard (`*`) expressions are supported.
306
306
  :param flat_settings: If `true`, returns settings in flat format.
307
307
  :param include_defaults: Return all default configurations for the component
308
- template (default: false)
308
+ template
309
309
  :param local: If `true`, the request retrieves information from the local node
310
310
  only. If `false`, information is retrieved from the master node.
311
311
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -882,10 +882,10 @@ class ClusterClient(NamespacedClient):
882
882
 
883
883
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-update-settings.html>`_
884
884
 
885
- :param flat_settings: Return settings in flat format (default: false)
886
- :param master_timeout: Explicit operation timeout for connection to master node
885
+ :param flat_settings: Return settings in flat format
886
+ :param master_timeout: The period to wait for a connection to the master node.
887
887
  :param persistent: The settings that persist after the cluster restarts.
888
- :param timeout: Explicit operation timeout
888
+ :param timeout: The period to wait for a response.
889
889
  :param transient: The settings that do not persist after the cluster restarts.
890
890
  """
891
891
  __path_parts: t.Dict[str, str] = {}
@@ -1110,20 +1110,21 @@ class ClusterClient(NamespacedClient):
1110
1110
 
1111
1111
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-state.html>`_
1112
1112
 
1113
- :param metric: Limit the information returned to the specified metrics
1113
+ :param metric: Limit the information returned to the specified metrics.
1114
1114
  :param index: A comma-separated list of index names; use `_all` or empty string
1115
1115
  to perform the operation on all indices
1116
1116
  :param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
1117
1117
  into no concrete indices. (This includes `_all` string or when no indices
1118
1118
  have been specified)
1119
1119
  :param expand_wildcards: Whether to expand wildcard expression to concrete indices
1120
- that are open, closed or both.
1121
- :param flat_settings: Return settings in flat format (default: false)
1120
+ that are open, closed or both
1121
+ :param flat_settings: Return settings in flat format
1122
1122
  :param ignore_unavailable: Whether specified concrete indices should be ignored
1123
1123
  when unavailable (missing or closed)
1124
1124
  :param local: Return local information, do not retrieve the state from master
1125
- node (default: false)
1126
- :param master_timeout: Specify timeout for connection to master
1125
+ node
1126
+ :param master_timeout: Timeout for waiting for new cluster state in case it is
1127
+ blocked
1127
1128
  :param wait_for_metadata_version: Wait for the metadata version to be equal or
1128
1129
  greater than the specified metadata version
1129
1130
  :param wait_for_timeout: The maximum time to wait for wait_for_metadata_version