elasticsearch9 9.2.0__py3-none-any.whl → 9.2.1__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 (120) hide show
  1. elasticsearch9/_async/client/__init__.py +64 -45
  2. elasticsearch9/_async/client/async_search.py +3 -3
  3. elasticsearch9/_async/client/autoscaling.py +15 -4
  4. elasticsearch9/_async/client/cat.py +40 -2
  5. elasticsearch9/_async/client/ccr.py +10 -10
  6. elasticsearch9/_async/client/cluster.py +32 -32
  7. elasticsearch9/_async/client/connector.py +42 -41
  8. elasticsearch9/_async/client/dangling_indices.py +8 -12
  9. elasticsearch9/_async/client/enrich.py +10 -10
  10. elasticsearch9/_async/client/eql.py +10 -10
  11. elasticsearch9/_async/client/esql.py +16 -16
  12. elasticsearch9/_async/client/features.py +6 -6
  13. elasticsearch9/_async/client/fleet.py +7 -7
  14. elasticsearch9/_async/client/graph.py +2 -2
  15. elasticsearch9/_async/client/ilm.py +18 -18
  16. elasticsearch9/_async/client/indices.py +131 -135
  17. elasticsearch9/_async/client/inference.py +76 -56
  18. elasticsearch9/_async/client/ingest.py +9 -9
  19. elasticsearch9/_async/client/license.py +5 -7
  20. elasticsearch9/_async/client/logstash.py +4 -4
  21. elasticsearch9/_async/client/migration.py +6 -6
  22. elasticsearch9/_async/client/ml.py +125 -85
  23. elasticsearch9/_async/client/monitoring.py +4 -3
  24. elasticsearch9/_async/client/nodes.py +15 -15
  25. elasticsearch9/_async/client/project.py +4 -3
  26. elasticsearch9/_async/client/query_rules.py +16 -16
  27. elasticsearch9/_async/client/rollup.py +21 -21
  28. elasticsearch9/_async/client/search_application.py +19 -19
  29. elasticsearch9/_async/client/searchable_snapshots.py +10 -10
  30. elasticsearch9/_async/client/security.py +8 -7
  31. elasticsearch9/_async/client/shutdown.py +15 -4
  32. elasticsearch9/_async/client/simulate.py +4 -4
  33. elasticsearch9/_async/client/slm.py +17 -17
  34. elasticsearch9/_async/client/snapshot.py +20 -20
  35. elasticsearch9/_async/client/sql.py +10 -10
  36. elasticsearch9/_async/client/streams.py +6 -6
  37. elasticsearch9/_async/client/synonyms.py +10 -10
  38. elasticsearch9/_async/client/tasks.py +8 -8
  39. elasticsearch9/_async/client/text_structure.py +13 -9
  40. elasticsearch9/_async/client/transform.py +51 -12
  41. elasticsearch9/_async/client/utils.py +4 -2
  42. elasticsearch9/_async/client/watcher.py +26 -26
  43. elasticsearch9/_async/client/xpack.py +6 -5
  44. elasticsearch9/_sync/client/__init__.py +66 -45
  45. elasticsearch9/_sync/client/async_search.py +3 -3
  46. elasticsearch9/_sync/client/autoscaling.py +15 -4
  47. elasticsearch9/_sync/client/cat.py +40 -2
  48. elasticsearch9/_sync/client/ccr.py +10 -10
  49. elasticsearch9/_sync/client/cluster.py +32 -32
  50. elasticsearch9/_sync/client/connector.py +42 -41
  51. elasticsearch9/_sync/client/dangling_indices.py +8 -12
  52. elasticsearch9/_sync/client/enrich.py +10 -10
  53. elasticsearch9/_sync/client/eql.py +10 -10
  54. elasticsearch9/_sync/client/esql.py +16 -16
  55. elasticsearch9/_sync/client/features.py +6 -6
  56. elasticsearch9/_sync/client/fleet.py +7 -7
  57. elasticsearch9/_sync/client/graph.py +2 -2
  58. elasticsearch9/_sync/client/ilm.py +18 -18
  59. elasticsearch9/_sync/client/indices.py +131 -135
  60. elasticsearch9/_sync/client/inference.py +76 -56
  61. elasticsearch9/_sync/client/ingest.py +9 -9
  62. elasticsearch9/_sync/client/license.py +5 -7
  63. elasticsearch9/_sync/client/logstash.py +4 -4
  64. elasticsearch9/_sync/client/migration.py +6 -6
  65. elasticsearch9/_sync/client/ml.py +125 -85
  66. elasticsearch9/_sync/client/monitoring.py +4 -3
  67. elasticsearch9/_sync/client/nodes.py +15 -15
  68. elasticsearch9/_sync/client/project.py +4 -3
  69. elasticsearch9/_sync/client/query_rules.py +16 -16
  70. elasticsearch9/_sync/client/rollup.py +21 -21
  71. elasticsearch9/_sync/client/search_application.py +19 -19
  72. elasticsearch9/_sync/client/searchable_snapshots.py +10 -10
  73. elasticsearch9/_sync/client/security.py +8 -7
  74. elasticsearch9/_sync/client/shutdown.py +15 -4
  75. elasticsearch9/_sync/client/simulate.py +4 -4
  76. elasticsearch9/_sync/client/slm.py +17 -17
  77. elasticsearch9/_sync/client/snapshot.py +20 -20
  78. elasticsearch9/_sync/client/sql.py +10 -10
  79. elasticsearch9/_sync/client/streams.py +6 -6
  80. elasticsearch9/_sync/client/synonyms.py +10 -10
  81. elasticsearch9/_sync/client/tasks.py +8 -8
  82. elasticsearch9/_sync/client/text_structure.py +13 -9
  83. elasticsearch9/_sync/client/transform.py +51 -12
  84. elasticsearch9/_sync/client/utils.py +16 -2
  85. elasticsearch9/_sync/client/watcher.py +26 -26
  86. elasticsearch9/_sync/client/xpack.py +6 -5
  87. elasticsearch9/_version.py +2 -2
  88. elasticsearch9/dsl/_async/document.py +4 -5
  89. elasticsearch9/dsl/_async/index.py +1 -1
  90. elasticsearch9/dsl/_async/search.py +2 -3
  91. elasticsearch9/dsl/_sync/document.py +4 -5
  92. elasticsearch9/dsl/_sync/index.py +1 -1
  93. elasticsearch9/dsl/_sync/search.py +2 -3
  94. elasticsearch9/dsl/aggs.py +3 -3
  95. elasticsearch9/dsl/async_connections.py +1 -2
  96. elasticsearch9/dsl/connections.py +1 -2
  97. elasticsearch9/dsl/document_base.py +1 -1
  98. elasticsearch9/dsl/field.py +1 -1
  99. elasticsearch9/dsl/pydantic.py +1 -1
  100. elasticsearch9/dsl/query.py +23 -0
  101. elasticsearch9/dsl/serializer.py +1 -2
  102. elasticsearch9/dsl/types.py +2 -6
  103. elasticsearch9/dsl/utils.py +1 -2
  104. elasticsearch9/esql/esql.py +1 -1
  105. elasticsearch9/esql/functions.py +2 -2
  106. elasticsearch9/helpers/vectorstore/__init__.py +7 -7
  107. elasticsearch9/helpers/vectorstore/_async/_utils.py +1 -1
  108. elasticsearch9/helpers/vectorstore/_async/embedding_service.py +2 -2
  109. elasticsearch9/helpers/vectorstore/_async/strategies.py +3 -3
  110. elasticsearch9/helpers/vectorstore/_async/vectorstore.py +5 -5
  111. elasticsearch9/helpers/vectorstore/_sync/_utils.py +1 -1
  112. elasticsearch9/helpers/vectorstore/_sync/embedding_service.py +2 -2
  113. elasticsearch9/helpers/vectorstore/_sync/strategies.py +3 -3
  114. elasticsearch9/helpers/vectorstore/_sync/vectorstore.py +5 -5
  115. {elasticsearch9-9.2.0.dist-info → elasticsearch9-9.2.1.dist-info}/METADATA +1 -1
  116. elasticsearch9-9.2.1.dist-info/RECORD +168 -0
  117. {elasticsearch9-9.2.0.dist-info → elasticsearch9-9.2.1.dist-info}/WHEEL +1 -1
  118. elasticsearch9-9.2.0.dist-info/RECORD +0 -168
  119. {elasticsearch9-9.2.0.dist-info → elasticsearch9-9.2.1.dist-info}/licenses/LICENSE +0 -0
  120. {elasticsearch9-9.2.0.dist-info → elasticsearch9-9.2.1.dist-info}/licenses/NOTICE +0 -0
@@ -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
 
@@ -3308,10 +3308,20 @@ class CatClient(NamespacedClient):
3308
3308
  self,
3309
3309
  *,
3310
3310
  index: t.Optional[t.Union[str, t.Sequence[str]]] = None,
3311
+ allow_closed: t.Optional[bool] = None,
3312
+ allow_no_indices: t.Optional[bool] = None,
3311
3313
  bytes: t.Optional[
3312
3314
  t.Union[str, t.Literal["b", "gb", "kb", "mb", "pb", "tb"]]
3313
3315
  ] = None,
3314
3316
  error_trace: t.Optional[bool] = None,
3317
+ expand_wildcards: t.Optional[
3318
+ t.Union[
3319
+ t.Sequence[
3320
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
3321
+ ],
3322
+ t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
3323
+ ]
3324
+ ] = None,
3315
3325
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
3316
3326
  format: t.Optional[str] = None,
3317
3327
  h: t.Optional[
@@ -3362,6 +3372,8 @@ class CatClient(NamespacedClient):
3362
3372
  ] = None,
3363
3373
  help: t.Optional[bool] = None,
3364
3374
  human: t.Optional[bool] = None,
3375
+ ignore_throttled: t.Optional[bool] = None,
3376
+ ignore_unavailable: t.Optional[bool] = None,
3365
3377
  local: t.Optional[bool] = None,
3366
3378
  master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
3367
3379
  pretty: t.Optional[bool] = None,
@@ -3385,6 +3397,14 @@ class CatClient(NamespacedClient):
3385
3397
  :param index: A comma-separated list of data streams, indices, and aliases used
3386
3398
  to limit the request. Supports wildcards (`*`). To target all data streams
3387
3399
  and indices, omit this parameter or use `*` or `_all`.
3400
+ :param allow_closed: If true, allow closed indices to be returned in the response
3401
+ otherwise if false, keep the legacy behaviour of throwing an exception if
3402
+ index pattern matches closed indices
3403
+ :param allow_no_indices: If false, the request returns an error if any wildcard
3404
+ expression, index alias, or _all value targets only missing or closed indices.
3405
+ This behavior applies even if the request targets other open indices. For
3406
+ example, a request targeting foo*,bar* returns an error if an index starts
3407
+ with foo but no index starts with bar.
3388
3408
  :param bytes: Sets the units for columns that contain a byte-size value. Note
3389
3409
  that byte-size value units work in terms of powers of 1024. For instance
3390
3410
  `1kb` means 1024 bytes, not 1000 bytes. If omitted, byte-size values are
@@ -3393,12 +3413,20 @@ class CatClient(NamespacedClient):
3393
3413
  least `1.0`. If given, byte-size values are rendered as an integer with no
3394
3414
  suffix, representing the value of the column in the chosen unit. Values that
3395
3415
  are not an exact multiple of the chosen unit are rounded down.
3416
+ :param expand_wildcards: Type of index that wildcard expressions can match. If
3417
+ the request can target data streams, this argument determines whether wildcard
3418
+ expressions match hidden data streams. Supports comma-separated values, such
3419
+ as open,hidden.
3396
3420
  :param format: Specifies the format to return the columnar data in, can be set
3397
3421
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
3398
3422
  :param h: A comma-separated list of columns names to display. It supports simple
3399
3423
  wildcards.
3400
3424
  :param help: When set to `true` will output available columns. This option can't
3401
3425
  be combined with any other query string option.
3426
+ :param ignore_throttled: If true, concrete, expanded or aliased indices are ignored
3427
+ when frozen.
3428
+ :param ignore_unavailable: If true, missing or closed indices are not included
3429
+ in the response.
3402
3430
  :param local: If `true`, the request computes the list of selected nodes from
3403
3431
  the local cluster state. If `false` the list of selected nodes are computed
3404
3432
  from the cluster state of the master node. In both cases the coordinating
@@ -3423,10 +3451,16 @@ class CatClient(NamespacedClient):
3423
3451
  __path_parts = {}
3424
3452
  __path = "/_cat/segments"
3425
3453
  __query: t.Dict[str, t.Any] = {}
3454
+ if allow_closed is not None:
3455
+ __query["allow_closed"] = allow_closed
3456
+ if allow_no_indices is not None:
3457
+ __query["allow_no_indices"] = allow_no_indices
3426
3458
  if bytes is not None:
3427
3459
  __query["bytes"] = bytes
3428
3460
  if error_trace is not None:
3429
3461
  __query["error_trace"] = error_trace
3462
+ if expand_wildcards is not None:
3463
+ __query["expand_wildcards"] = expand_wildcards
3430
3464
  if filter_path is not None:
3431
3465
  __query["filter_path"] = filter_path
3432
3466
  if format is not None:
@@ -3437,6 +3471,10 @@ class CatClient(NamespacedClient):
3437
3471
  __query["help"] = help
3438
3472
  if human is not None:
3439
3473
  __query["human"] = human
3474
+ if ignore_throttled is not None:
3475
+ __query["ignore_throttled"] = ignore_throttled
3476
+ if ignore_unavailable is not None:
3477
+ __query["ignore_unavailable"] = ignore_unavailable
3440
3478
  if local is not None:
3441
3479
  __query["local"] = local
3442
3480
  if master_timeout is not None:
@@ -3868,7 +3906,7 @@ class CatClient(NamespacedClient):
3868
3906
  )
3869
3907
 
3870
3908
  @_rewrite_parameters()
3871
- @_stability_warning(Stability.EXPERIMENTAL)
3909
+ @_availability_warning(Stability.EXPERIMENTAL)
3872
3910
  def tasks(
3873
3911
  self,
3874
3912
  *,
@@ -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:
@@ -47,8 +47,8 @@ class ClusterClient(NamespacedClient):
47
47
  """
48
48
  .. raw:: html
49
49
 
50
- <p>Explain the shard allocations.
51
- Get explanations for shard allocations in the cluster.
50
+ <p>Explain the shard allocations.</p>
51
+ <p>Get explanations for shard allocations in the cluster.
52
52
  This API accepts the current_node, index, primary and shard parameters in the request body or in query parameters, but not in both at the same time.
53
53
  For unassigned shards, it provides an explanation for why the shard is unassigned.
54
54
  For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node.
@@ -127,8 +127,8 @@ class ClusterClient(NamespacedClient):
127
127
  """
128
128
  .. raw:: html
129
129
 
130
- <p>Delete component templates.
131
- Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
130
+ <p>Delete component templates.</p>
131
+ <p>Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
132
132
 
133
133
 
134
134
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template>`_
@@ -182,8 +182,8 @@ class ClusterClient(NamespacedClient):
182
182
  """
183
183
  .. raw:: html
184
184
 
185
- <p>Clear cluster voting config exclusions.
186
- Remove master-eligible nodes from the voting configuration exclusion list.</p>
185
+ <p>Clear cluster voting config exclusions.</p>
186
+ <p>Remove master-eligible nodes from the voting configuration exclusion list.</p>
187
187
 
188
188
 
189
189
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-post-voting-config-exclusions>`_
@@ -236,8 +236,8 @@ class ClusterClient(NamespacedClient):
236
236
  """
237
237
  .. raw:: html
238
238
 
239
- <p>Check component templates.
240
- Returns information about whether a particular component template exists.</p>
239
+ <p>Check component templates.</p>
240
+ <p>Returns information about whether a particular component template exists.</p>
241
241
 
242
242
 
243
243
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template>`_
@@ -296,8 +296,8 @@ class ClusterClient(NamespacedClient):
296
296
  """
297
297
  .. raw:: html
298
298
 
299
- <p>Get component templates.
300
- Get information about component templates.</p>
299
+ <p>Get component templates.</p>
300
+ <p>Get information about component templates.</p>
301
301
 
302
302
 
303
303
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template>`_
@@ -306,7 +306,7 @@ class ClusterClient(NamespacedClient):
306
306
  request. Wildcard (`*`) expressions are supported.
307
307
  :param flat_settings: If `true`, returns settings in flat format.
308
308
  :param include_defaults: Return all default configurations for the component
309
- template (default: false)
309
+ template
310
310
  :param local: If `true`, the request retrieves information from the local node
311
311
  only. If `false`, information is retrieved from the master node.
312
312
  :param master_timeout: Period to wait for a connection to the master node. If
@@ -572,8 +572,8 @@ class ClusterClient(NamespacedClient):
572
572
  """
573
573
  .. raw:: html
574
574
 
575
- <p>Get cluster info.
576
- Returns basic information about the cluster.</p>
575
+ <p>Get cluster info.</p>
576
+ <p>Returns basic information about the cluster.</p>
577
577
 
578
578
 
579
579
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-info>`_
@@ -618,8 +618,8 @@ class ClusterClient(NamespacedClient):
618
618
  """
619
619
  .. raw:: html
620
620
 
621
- <p>Get the pending cluster tasks.
622
- Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect.</p>
621
+ <p>Get the pending cluster tasks.</p>
622
+ <p>Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect.</p>
623
623
  <p>NOTE: This API returns a list of any pending updates to the cluster state.
624
624
  These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests.
625
625
  However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API.</p>
@@ -674,8 +674,8 @@ class ClusterClient(NamespacedClient):
674
674
  """
675
675
  .. raw:: html
676
676
 
677
- <p>Update voting configuration exclusions.
678
- Update the cluster voting config exclusions by node IDs or node names.
677
+ <p>Update voting configuration exclusions.</p>
678
+ <p>Update the cluster voting config exclusions by node IDs or node names.
679
679
  By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks.
680
680
  If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually.
681
681
  The API adds an entry for each specified node to the cluster’s voting configuration exclusions list.
@@ -757,8 +757,8 @@ class ClusterClient(NamespacedClient):
757
757
  """
758
758
  .. raw:: html
759
759
 
760
- <p>Create or update a component template.
761
- Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
760
+ <p>Create or update a component template.</p>
761
+ <p>Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
762
762
  <p>An index template can be composed of multiple component templates.
763
763
  To use a component template, specify it in an index template’s <code>composed_of</code> list.
764
764
  Component templates are only applied to new data streams and indices as part of a matching index template.</p>
@@ -883,10 +883,10 @@ class ClusterClient(NamespacedClient):
883
883
 
884
884
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings>`_
885
885
 
886
- :param flat_settings: Return settings in flat format (default: false)
887
- :param master_timeout: Explicit operation timeout for connection to master node
886
+ :param flat_settings: Return settings in flat format
887
+ :param master_timeout: The period to wait for a connection to the master node.
888
888
  :param persistent: The settings that persist after the cluster restarts.
889
- :param timeout: Explicit operation timeout
889
+ :param timeout: The period to wait for a response.
890
890
  :param transient: The settings that do not persist after the cluster restarts.
891
891
  """
892
892
  __path_parts: t.Dict[str, str] = {}
@@ -992,8 +992,8 @@ class ClusterClient(NamespacedClient):
992
992
  """
993
993
  .. raw:: html
994
994
 
995
- <p>Reroute the cluster.
996
- Manually change the allocation of individual shards in the cluster.
995
+ <p>Reroute the cluster.</p>
996
+ <p>Manually change the allocation of individual shards in the cluster.
997
997
  For example, a shard can be moved from one node to another explicitly, an allocation can be canceled, and an unassigned shard can be explicitly allocated to a specific node.</p>
998
998
  <p>It is important to note that after processing any reroute commands Elasticsearch will perform rebalancing as normal (respecting the values of settings such as <code>cluster.routing.rebalance.enable</code>) in order to remain in a balanced state.
999
999
  For example, if the requested allocation includes moving a shard from node1 to node2 then this may cause a shard to be moved from node2 back to node1 to even things out.</p>
@@ -1093,8 +1093,8 @@ class ClusterClient(NamespacedClient):
1093
1093
  """
1094
1094
  .. raw:: html
1095
1095
 
1096
- <p>Get the cluster state.
1097
- Get comprehensive information about the state of the cluster.</p>
1096
+ <p>Get the cluster state.</p>
1097
+ <p>Get comprehensive information about the state of the cluster.</p>
1098
1098
  <p>The cluster state is an internal data structure which keeps track of a variety of information needed by every node, including the identity and attributes of the other nodes in the cluster; cluster-wide settings; index metadata, including the mapping and settings for each index; the location and status of every shard copy in the cluster.</p>
1099
1099
  <p>The elected master node ensures that every node in the cluster has a copy of the same cluster state.
1100
1100
  This API lets you retrieve a representation of this internal state for debugging or diagnostic purposes.
@@ -1111,19 +1111,19 @@ class ClusterClient(NamespacedClient):
1111
1111
 
1112
1112
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-state>`_
1113
1113
 
1114
- :param metric: Limit the information returned to the specified metrics
1114
+ :param metric: Limit the information returned to the specified metrics.
1115
1115
  :param index: A comma-separated list of index names; use `_all` or empty string
1116
1116
  to perform the operation on all indices
1117
1117
  :param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
1118
1118
  into no concrete indices. (This includes `_all` string or when no indices
1119
1119
  have been specified)
1120
1120
  :param expand_wildcards: Whether to expand wildcard expression to concrete indices
1121
- that are open, closed or both.
1122
- :param flat_settings: Return settings in flat format (default: false)
1121
+ that are open, closed or both
1122
+ :param flat_settings: Return settings in flat format
1123
1123
  :param ignore_unavailable: Whether specified concrete indices should be ignored
1124
1124
  when unavailable (missing or closed)
1125
1125
  :param local: Return local information, do not retrieve the state from master
1126
- node (default: false)
1126
+ node
1127
1127
  :param master_timeout: Timeout for waiting for new cluster state in case it is
1128
1128
  blocked
1129
1129
  :param wait_for_metadata_version: Wait for the metadata version to be equal or
@@ -1194,8 +1194,8 @@ class ClusterClient(NamespacedClient):
1194
1194
  """
1195
1195
  .. raw:: html
1196
1196
 
1197
- <p>Get cluster statistics.
1198
- Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).</p>
1197
+ <p>Get cluster statistics.</p>
1198
+ <p>Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).</p>
1199
1199
 
1200
1200
 
1201
1201
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-stats>`_