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,16 +23,16 @@ 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
 
32
32
  class NodesClient(NamespacedClient):
33
33
 
34
34
  @_rewrite_parameters()
35
- @_stability_warning(Stability.EXPERIMENTAL)
35
+ @_availability_warning(Stability.EXPERIMENTAL)
36
36
  def clear_repositories_metering_archive(
37
37
  self,
38
38
  *,
@@ -46,8 +46,8 @@ class NodesClient(NamespacedClient):
46
46
  """
47
47
  .. raw:: html
48
48
 
49
- <p>Clear the archived repositories metering.
50
- Clear the archived repositories metering information in the cluster.</p>
49
+ <p>Clear the archived repositories metering.</p>
50
+ <p>Clear the archived repositories metering information in the cluster.</p>
51
51
 
52
52
 
53
53
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-clear-repositories-metering-archive>`_
@@ -86,7 +86,7 @@ class NodesClient(NamespacedClient):
86
86
  )
87
87
 
88
88
  @_rewrite_parameters()
89
- @_stability_warning(Stability.EXPERIMENTAL)
89
+ @_availability_warning(Stability.EXPERIMENTAL)
90
90
  def get_repositories_metering_info(
91
91
  self,
92
92
  *,
@@ -99,8 +99,8 @@ class NodesClient(NamespacedClient):
99
99
  """
100
100
  .. raw:: html
101
101
 
102
- <p>Get cluster repositories metering.
103
- Get repositories metering information for a cluster.
102
+ <p>Get cluster repositories metering.</p>
103
+ <p>Get repositories metering information for a cluster.
104
104
  This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time.
105
105
  Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts.</p>
106
106
 
@@ -157,8 +157,8 @@ class NodesClient(NamespacedClient):
157
157
  """
158
158
  .. raw:: html
159
159
 
160
- <p>Get the hot threads for nodes.
161
- Get a breakdown of the hot threads on each selected node in the cluster.
160
+ <p>Get the hot threads for nodes.</p>
161
+ <p>Get a breakdown of the hot threads on each selected node in the cluster.
162
162
  The output is plain text with a breakdown of the top hot threads for each node.</p>
163
163
 
164
164
 
@@ -169,7 +169,7 @@ class NodesClient(NamespacedClient):
169
169
  select, or to get a task from an empty queue) are filtered out.
170
170
  :param interval: The interval to do the second sampling of threads.
171
171
  :param snapshots: Number of samples of thread stacktrace.
172
- :param sort: The sort order for 'cpu' type (default: total)
172
+ :param sort: The sort order for 'cpu' type
173
173
  :param threads: Specifies the number of hot threads to provide information for.
174
174
  :param timeout: Period to wait for a response. If no response is received before
175
175
  the timeout expires, the request fails and returns an error.
@@ -376,8 +376,8 @@ class NodesClient(NamespacedClient):
376
376
  """
377
377
  .. raw:: html
378
378
 
379
- <p>Get node statistics.
380
- Get statistics for nodes in a cluster.
379
+ <p>Get node statistics.</p>
380
+ <p>Get statistics for nodes in a cluster.
381
381
  By default, all stats are returned. You can limit the returned information by using metrics.</p>
382
382
 
383
383
 
@@ -385,7 +385,7 @@ class NodesClient(NamespacedClient):
385
385
 
386
386
  :param node_id: Comma-separated list of node IDs or names used to limit returned
387
387
  information.
388
- :param metric: Limit the information returned to the specified metrics
388
+ :param metric: Limits the information returned to the specific metrics.
389
389
  :param index_metric: Limit the information returned for indices metric to the
390
390
  specific index metrics. It can be used only if indices (or all) metric is
391
391
  specified.
@@ -499,8 +499,8 @@ class NodesClient(NamespacedClient):
499
499
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-usage>`_
500
500
 
501
501
  :param node_id: A comma-separated list of node IDs or names to limit the returned
502
- information; use `_local` to return information from the node you're connecting
503
- to, leave empty to get information from all nodes
502
+ information. Use `_local` to return information from the node you're connecting
503
+ to, leave empty to get information from all nodes.
504
504
  :param metric: Limits the information returned to the specific metrics. A comma-separated
505
505
  list of the following options: `_all`, `rest_actions`.
506
506
  :param timeout: Period to wait for a response. If no response is received before
@@ -22,15 +22,15 @@ from elastic_transport import ObjectApiResponse
22
22
  from ._base import NamespacedClient
23
23
  from .utils import (
24
24
  Stability,
25
+ _availability_warning,
25
26
  _rewrite_parameters,
26
- _stability_warning,
27
27
  )
28
28
 
29
29
 
30
30
  class ProjectClient(NamespacedClient):
31
31
 
32
32
  @_rewrite_parameters()
33
- @_stability_warning(Stability.EXPERIMENTAL)
33
+ @_availability_warning(Stability.EXPERIMENTAL)
34
34
  def tags(
35
35
  self,
36
36
  *,
@@ -42,7 +42,8 @@ class ProjectClient(NamespacedClient):
42
42
  """
43
43
  .. raw:: html
44
44
 
45
- <p>Return tags defined for the project</p>
45
+ <p>Get tags.</p>
46
+ <p>Get the tags that are defined for the project.</p>
46
47
 
47
48
  """
48
49
  __path_parts: t.Dict[str, str] = {}
@@ -39,8 +39,8 @@ class QueryRulesClient(NamespacedClient):
39
39
  """
40
40
  .. raw:: html
41
41
 
42
- <p>Delete a query rule.
43
- Delete a query rule within a query ruleset.
42
+ <p>Delete a query rule.</p>
43
+ <p>Delete a query rule within a query ruleset.
44
44
  This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API.</p>
45
45
 
46
46
 
@@ -92,8 +92,8 @@ class QueryRulesClient(NamespacedClient):
92
92
  """
93
93
  .. raw:: html
94
94
 
95
- <p>Delete a query ruleset.
96
- Remove a query ruleset and its associated data.
95
+ <p>Delete a query ruleset.</p>
96
+ <p>Remove a query ruleset and its associated data.
97
97
  This is a destructive action that is not recoverable.</p>
98
98
 
99
99
 
@@ -138,8 +138,8 @@ class QueryRulesClient(NamespacedClient):
138
138
  """
139
139
  .. raw:: html
140
140
 
141
- <p>Get a query rule.
142
- Get details about a query rule within a query ruleset.</p>
141
+ <p>Get a query rule.</p>
142
+ <p>Get details about a query rule within a query ruleset.</p>
143
143
 
144
144
 
145
145
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-get-rule>`_
@@ -190,8 +190,8 @@ class QueryRulesClient(NamespacedClient):
190
190
  """
191
191
  .. raw:: html
192
192
 
193
- <p>Get a query ruleset.
194
- Get details about a query ruleset.</p>
193
+ <p>Get a query ruleset.</p>
194
+ <p>Get details about a query ruleset.</p>
195
195
 
196
196
 
197
197
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-get-ruleset>`_
@@ -237,8 +237,8 @@ class QueryRulesClient(NamespacedClient):
237
237
  """
238
238
  .. raw:: html
239
239
 
240
- <p>Get all query rulesets.
241
- Get summarized information about the query rulesets.</p>
240
+ <p>Get all query rulesets.</p>
241
+ <p>Get summarized information about the query rulesets.</p>
242
242
 
243
243
 
244
244
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-list-rulesets>`_
@@ -294,8 +294,8 @@ class QueryRulesClient(NamespacedClient):
294
294
  """
295
295
  .. raw:: html
296
296
 
297
- <p>Create or update a query rule.
298
- Create or update a query rule within a query ruleset.</p>
297
+ <p>Create or update a query rule.</p>
298
+ <p>Create or update a query rule within a query ruleset.</p>
299
299
  <p>IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule.
300
300
  It is advised to use one or the other in query rulesets, to avoid errors.
301
301
  Additionally, pinned queries have a maximum limit of 100 pinned hits.
@@ -380,8 +380,8 @@ class QueryRulesClient(NamespacedClient):
380
380
  """
381
381
  .. raw:: html
382
382
 
383
- <p>Create or update a query ruleset.
384
- There is a limit of 100 rules per ruleset.
383
+ <p>Create or update a query ruleset.</p>
384
+ <p>There is a limit of 100 rules per ruleset.
385
385
  This limit can be increased by using the <code>xpack.applications.rules.max_rules_per_ruleset</code> cluster setting.</p>
386
386
  <p>IMPORTANT: Due to limitations within pinned queries, you can only select documents using <code>ids</code> or <code>docs</code>, but cannot use both in single rule.
387
387
  It is advised to use one or the other in query rulesets, to avoid errors.
@@ -442,8 +442,8 @@ class QueryRulesClient(NamespacedClient):
442
442
  """
443
443
  .. raw:: html
444
444
 
445
- <p>Test a query ruleset.
446
- Evaluate match criteria against a query ruleset to identify the rules that would match that criteria.</p>
445
+ <p>Test a query ruleset.</p>
446
+ <p>Evaluate match criteria against a query ruleset to identify the rules that would match that criteria.</p>
447
447
 
448
448
 
449
449
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-test>`_
@@ -23,16 +23,16 @@ 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
 
32
32
  class RollupClient(NamespacedClient):
33
33
 
34
34
  @_rewrite_parameters()
35
- @_stability_warning(Stability.EXPERIMENTAL)
35
+ @_availability_warning(Stability.EXPERIMENTAL)
36
36
  def delete_job(
37
37
  self,
38
38
  *,
@@ -95,7 +95,7 @@ class RollupClient(NamespacedClient):
95
95
  )
96
96
 
97
97
  @_rewrite_parameters()
98
- @_stability_warning(Stability.EXPERIMENTAL)
98
+ @_availability_warning(Stability.EXPERIMENTAL)
99
99
  def get_jobs(
100
100
  self,
101
101
  *,
@@ -108,8 +108,8 @@ class RollupClient(NamespacedClient):
108
108
  """
109
109
  .. raw:: html
110
110
 
111
- <p>Get rollup job information.
112
- Get the configuration, stats, and status of rollup jobs.</p>
111
+ <p>Get rollup job information.</p>
112
+ <p>Get the configuration, stats, and status of rollup jobs.</p>
113
113
  <p>NOTE: This API returns only active (both <code>STARTED</code> and <code>STOPPED</code>) jobs.
114
114
  If a job was created, ran for a while, then was deleted, the API does not return any details about it.
115
115
  For details about a historical rollup job, the rollup capabilities API may be more useful.</p>
@@ -147,7 +147,7 @@ class RollupClient(NamespacedClient):
147
147
  )
148
148
 
149
149
  @_rewrite_parameters()
150
- @_stability_warning(Stability.EXPERIMENTAL)
150
+ @_availability_warning(Stability.EXPERIMENTAL)
151
151
  def get_rollup_caps(
152
152
  self,
153
153
  *,
@@ -160,8 +160,8 @@ class RollupClient(NamespacedClient):
160
160
  """
161
161
  .. raw:: html
162
162
 
163
- <p>Get the rollup job capabilities.
164
- Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern.</p>
163
+ <p>Get the rollup job capabilities.</p>
164
+ <p>Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern.</p>
165
165
  <p>This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index.
166
166
  Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration.
167
167
  This API enables you to inspect an index and determine:</p>
@@ -203,7 +203,7 @@ class RollupClient(NamespacedClient):
203
203
  )
204
204
 
205
205
  @_rewrite_parameters()
206
- @_stability_warning(Stability.EXPERIMENTAL)
206
+ @_availability_warning(Stability.EXPERIMENTAL)
207
207
  def get_rollup_index_caps(
208
208
  self,
209
209
  *,
@@ -216,8 +216,8 @@ class RollupClient(NamespacedClient):
216
216
  """
217
217
  .. raw:: html
218
218
 
219
- <p>Get the rollup index capabilities.
220
- Get the rollup capabilities of all jobs inside of a rollup index.
219
+ <p>Get the rollup index capabilities.</p>
220
+ <p>Get the rollup capabilities of all jobs inside of a rollup index.
221
221
  A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine:</p>
222
222
  <ul>
223
223
  <li>What jobs are stored in an index (or indices specified via a pattern)?</li>
@@ -266,7 +266,7 @@ class RollupClient(NamespacedClient):
266
266
  ),
267
267
  ignore_deprecated_options={"headers"},
268
268
  )
269
- @_stability_warning(Stability.EXPERIMENTAL)
269
+ @_availability_warning(Stability.EXPERIMENTAL)
270
270
  def put_job(
271
271
  self,
272
272
  *,
@@ -392,7 +392,7 @@ class RollupClient(NamespacedClient):
392
392
  @_rewrite_parameters(
393
393
  body_fields=("aggregations", "aggs", "query", "size"),
394
394
  )
395
- @_stability_warning(Stability.EXPERIMENTAL)
395
+ @_availability_warning(Stability.EXPERIMENTAL)
396
396
  def rollup_search(
397
397
  self,
398
398
  *,
@@ -412,8 +412,8 @@ class RollupClient(NamespacedClient):
412
412
  """
413
413
  .. raw:: html
414
414
 
415
- <p>Search rolled-up data.
416
- The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data.
415
+ <p>Search rolled-up data.</p>
416
+ <p>The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data.
417
417
  It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query.</p>
418
418
  <p>The request body supports a subset of features from the regular search API.
419
419
  The following functionality is not available:</p>
@@ -482,7 +482,7 @@ class RollupClient(NamespacedClient):
482
482
  )
483
483
 
484
484
  @_rewrite_parameters()
485
- @_stability_warning(Stability.EXPERIMENTAL)
485
+ @_availability_warning(Stability.EXPERIMENTAL)
486
486
  def start_job(
487
487
  self,
488
488
  *,
@@ -495,8 +495,8 @@ class RollupClient(NamespacedClient):
495
495
  """
496
496
  .. raw:: html
497
497
 
498
- <p>Start rollup jobs.
499
- If you try to start a job that does not exist, an exception occurs.
498
+ <p>Start rollup jobs.</p>
499
+ <p>If you try to start a job that does not exist, an exception occurs.
500
500
  If you try to start a job that is already started, nothing happens.</p>
501
501
 
502
502
 
@@ -528,7 +528,7 @@ class RollupClient(NamespacedClient):
528
528
  )
529
529
 
530
530
  @_rewrite_parameters()
531
- @_stability_warning(Stability.EXPERIMENTAL)
531
+ @_availability_warning(Stability.EXPERIMENTAL)
532
532
  def stop_job(
533
533
  self,
534
534
  *,
@@ -543,8 +543,8 @@ class RollupClient(NamespacedClient):
543
543
  """
544
544
  .. raw:: html
545
545
 
546
- <p>Stop rollup jobs.
547
- If you try to stop a job that does not exist, an exception occurs.
546
+ <p>Stop rollup jobs.</p>
547
+ <p>If you try to stop a job that does not exist, an exception occurs.
548
548
  If you try to stop a job that is already stopped, nothing happens.</p>
549
549
  <p>Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped.
550
550
  This is accomplished with the <code>wait_for_completion</code> query parameter, and optionally a timeout. For example:</p>
@@ -23,16 +23,16 @@ 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
 
32
32
  class SearchApplicationClient(NamespacedClient):
33
33
 
34
34
  @_rewrite_parameters()
35
- @_stability_warning(Stability.BETA)
35
+ @_availability_warning(Stability.BETA)
36
36
  def delete(
37
37
  self,
38
38
  *,
@@ -77,7 +77,7 @@ class SearchApplicationClient(NamespacedClient):
77
77
  )
78
78
 
79
79
  @_rewrite_parameters()
80
- @_stability_warning(Stability.EXPERIMENTAL)
80
+ @_availability_warning(Stability.EXPERIMENTAL)
81
81
  def delete_behavioral_analytics(
82
82
  self,
83
83
  *,
@@ -90,8 +90,8 @@ class SearchApplicationClient(NamespacedClient):
90
90
  """
91
91
  .. raw:: html
92
92
 
93
- <p>Delete a behavioral analytics collection.
94
- The associated data stream is also deleted.</p>
93
+ <p>Delete a behavioral analytics collection.</p>
94
+ <p>The associated data stream is also deleted.</p>
95
95
 
96
96
 
97
97
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-delete-behavioral-analytics>`_
@@ -122,7 +122,7 @@ class SearchApplicationClient(NamespacedClient):
122
122
  )
123
123
 
124
124
  @_rewrite_parameters()
125
- @_stability_warning(Stability.BETA)
125
+ @_availability_warning(Stability.BETA)
126
126
  def get(
127
127
  self,
128
128
  *,
@@ -166,7 +166,7 @@ class SearchApplicationClient(NamespacedClient):
166
166
  )
167
167
 
168
168
  @_rewrite_parameters()
169
- @_stability_warning(Stability.EXPERIMENTAL)
169
+ @_availability_warning(Stability.EXPERIMENTAL)
170
170
  def get_behavioral_analytics(
171
171
  self,
172
172
  *,
@@ -215,7 +215,7 @@ class SearchApplicationClient(NamespacedClient):
215
215
  @_rewrite_parameters(
216
216
  parameter_aliases={"from": "from_"},
217
217
  )
218
- @_stability_warning(Stability.BETA)
218
+ @_availability_warning(Stability.BETA)
219
219
  def list(
220
220
  self,
221
221
  *,
@@ -230,8 +230,8 @@ class SearchApplicationClient(NamespacedClient):
230
230
  """
231
231
  .. raw:: html
232
232
 
233
- <p>Get search applications.
234
- Get information about search applications.</p>
233
+ <p>Get search applications.</p>
234
+ <p>Get information about search applications.</p>
235
235
 
236
236
 
237
237
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-get-behavioral-analytics>`_
@@ -270,7 +270,7 @@ class SearchApplicationClient(NamespacedClient):
270
270
  @_rewrite_parameters(
271
271
  body_name="payload",
272
272
  )
273
- @_stability_warning(Stability.EXPERIMENTAL)
273
+ @_availability_warning(Stability.EXPERIMENTAL)
274
274
  def post_behavioral_analytics_event(
275
275
  self,
276
276
  *,
@@ -338,7 +338,7 @@ class SearchApplicationClient(NamespacedClient):
338
338
  @_rewrite_parameters(
339
339
  body_name="search_application",
340
340
  )
341
- @_stability_warning(Stability.BETA)
341
+ @_availability_warning(Stability.BETA)
342
342
  def put(
343
343
  self,
344
344
  *,
@@ -398,7 +398,7 @@ class SearchApplicationClient(NamespacedClient):
398
398
  )
399
399
 
400
400
  @_rewrite_parameters()
401
- @_stability_warning(Stability.EXPERIMENTAL)
401
+ @_availability_warning(Stability.EXPERIMENTAL)
402
402
  def put_behavioral_analytics(
403
403
  self,
404
404
  *,
@@ -445,7 +445,7 @@ class SearchApplicationClient(NamespacedClient):
445
445
  body_fields=("params",),
446
446
  ignore_deprecated_options={"params"},
447
447
  )
448
- @_stability_warning(Stability.EXPERIMENTAL)
448
+ @_availability_warning(Stability.EXPERIMENTAL)
449
449
  def render_query(
450
450
  self,
451
451
  *,
@@ -460,8 +460,8 @@ class SearchApplicationClient(NamespacedClient):
460
460
  """
461
461
  .. raw:: html
462
462
 
463
- <p>Render a search application query.
464
- Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified.
463
+ <p>Render a search application query.</p>
464
+ <p>Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified.
465
465
  If a parameter used in the search template is not specified in <code>params</code>, the parameter's default value will be used.
466
466
  The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API.</p>
467
467
  <p>You must have <code>read</code> privileges on the backing alias of the search application.</p>
@@ -510,7 +510,7 @@ class SearchApplicationClient(NamespacedClient):
510
510
  body_fields=("params",),
511
511
  ignore_deprecated_options={"params"},
512
512
  )
513
- @_stability_warning(Stability.BETA)
513
+ @_availability_warning(Stability.BETA)
514
514
  def search(
515
515
  self,
516
516
  *,
@@ -526,8 +526,8 @@ class SearchApplicationClient(NamespacedClient):
526
526
  """
527
527
  .. raw:: html
528
528
 
529
- <p>Run a search application search.
530
- Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template.
529
+ <p>Run a search application search.</p>
530
+ <p>Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template.
531
531
  Unspecified template parameters are assigned their default values if applicable.</p>
532
532
 
533
533
 
@@ -23,16 +23,16 @@ 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
 
32
32
  class SearchableSnapshotsClient(NamespacedClient):
33
33
 
34
34
  @_rewrite_parameters()
35
- @_stability_warning(Stability.EXPERIMENTAL)
35
+ @_availability_warning(Stability.EXPERIMENTAL)
36
36
  def cache_stats(
37
37
  self,
38
38
  *,
@@ -46,8 +46,8 @@ class SearchableSnapshotsClient(NamespacedClient):
46
46
  """
47
47
  .. raw:: html
48
48
 
49
- <p>Get cache statistics.
50
- Get statistics about the shared cache for partially mounted indices.</p>
49
+ <p>Get cache statistics.</p>
50
+ <p>Get statistics about the shared cache for partially mounted indices.</p>
51
51
 
52
52
 
53
53
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-cache-stats>`_
@@ -84,7 +84,7 @@ class SearchableSnapshotsClient(NamespacedClient):
84
84
  )
85
85
 
86
86
  @_rewrite_parameters()
87
- @_stability_warning(Stability.EXPERIMENTAL)
87
+ @_availability_warning(Stability.EXPERIMENTAL)
88
88
  def clear_cache(
89
89
  self,
90
90
  *,
@@ -107,8 +107,8 @@ class SearchableSnapshotsClient(NamespacedClient):
107
107
  """
108
108
  .. raw:: html
109
109
 
110
- <p>Clear the cache.
111
- Clear indices and data streams from the shared cache for partially mounted indices.</p>
110
+ <p>Clear the cache.</p>
111
+ <p>Clear indices and data streams from the shared cache for partially mounted indices.</p>
112
112
 
113
113
 
114
114
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-clear-cache>`_
@@ -119,7 +119,7 @@ class SearchableSnapshotsClient(NamespacedClient):
119
119
  into no concrete indices. (This includes `_all` string or when no indices
120
120
  have been specified)
121
121
  :param expand_wildcards: Whether to expand wildcard expression to concrete indices
122
- that are open, closed or both.
122
+ that are open, closed or both
123
123
  :param ignore_unavailable: Whether specified concrete indices should be ignored
124
124
  when unavailable (missing or closed)
125
125
  """
@@ -184,8 +184,8 @@ class SearchableSnapshotsClient(NamespacedClient):
184
184
  """
185
185
  .. raw:: html
186
186
 
187
- <p>Mount a snapshot.
188
- Mount a snapshot as a searchable snapshot index.
187
+ <p>Mount a snapshot.</p>
188
+ <p>Mount a snapshot as a searchable snapshot index.
189
189
  Do not use this API for snapshots managed by index lifecycle management (ILM).
190
190
  Manually mounting ILM-managed snapshots can interfere with ILM processes.</p>
191
191
 
@@ -288,8 +288,8 @@ class SecurityClient(NamespacedClient):
288
288
  """
289
289
  .. raw:: html
290
290
 
291
- <p>Bulk update API keys.
292
- Update the attributes for multiple API keys.</p>
291
+ <p>Bulk update API keys.</p>
292
+ <p>Update the attributes for multiple API keys.</p>
293
293
  <p>IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required.</p>
294
294
  <p>This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates.</p>
295
295
  <p>It is not possible to update expired or invalidated API keys.</p>
@@ -892,8 +892,8 @@ class SecurityClient(NamespacedClient):
892
892
  Token names must be unique in the context of the associated service account.
893
893
  They must also be globally unique with their fully qualified names, which
894
894
  are comprised of the service account principal and token name, such as `<namespace>/<service>/<token-name>`.
895
- :param refresh: If `true` then refresh the affected shards to make this operation
896
- visible to search, if `wait_for` (the default) then wait for a refresh to
895
+ :param refresh: If `true` (the default) then refresh the affected shards to make
896
+ this operation visible to search, if `wait_for` then wait for a refresh to
897
897
  make this operation visible to search, if `false` then do nothing with refreshes.
898
898
  """
899
899
  if namespace in SKIP_IN_PATH:
@@ -1208,8 +1208,8 @@ class SecurityClient(NamespacedClient):
1208
1208
  :param namespace: The namespace, which is a top-level grouping of service accounts.
1209
1209
  :param service: The service name.
1210
1210
  :param name: The name of the service account token.
1211
- :param refresh: If `true` then refresh the affected shards to make this operation
1212
- visible to search, if `wait_for` (the default) then wait for a refresh to
1211
+ :param refresh: If `true` (the default) then refresh the affected shards to make
1212
+ this operation visible to search, if `wait_for` then wait for a refresh to
1213
1213
  make this operation visible to search, if `false` then do nothing with refreshes.
1214
1214
  """
1215
1215
  if namespace in SKIP_IN_PATH:
@@ -3750,7 +3750,8 @@ class SecurityClient(NamespacedClient):
3750
3750
  :param size: The number of hits to return. It must not be negative. By default,
3751
3751
  you cannot page through more than 10,000 hits using the `from` and `size`
3752
3752
  parameters. To page through more hits, use the `search_after` parameter.
3753
- :param sort: The sort definition. You can sort on `username`, `roles`, or `enabled`.
3753
+ :param sort: The sort definition. You can sort on `name`, `description`, `metadata`,
3754
+ `applications.application`, `applications.privileges`, and `applications.resources`.
3754
3755
  In addition, sort can also be applied to the `_doc` field to sort by index
3755
3756
  order.
3756
3757
  """
@@ -20,12 +20,20 @@ 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
+ Stability,
26
+ Visibility,
27
+ _availability_warning,
28
+ _quote,
29
+ _rewrite_parameters,
30
+ )
24
31
 
25
32
 
26
33
  class ShutdownClient(NamespacedClient):
27
34
 
28
35
  @_rewrite_parameters()
36
+ @_availability_warning(Stability.STABLE, Visibility.PRIVATE)
29
37
  def delete_node(
30
38
  self,
31
39
  *,
@@ -40,8 +48,8 @@ class ShutdownClient(NamespacedClient):
40
48
  """
41
49
  .. raw:: html
42
50
 
43
- <p>Cancel node shutdown preparations.
44
- Remove a node from the shutdown list so it can resume normal operations.
51
+ <p>Cancel node shutdown preparations.</p>
52
+ <p>Remove a node from the shutdown list so it can resume normal operations.
45
53
  You must explicitly clear the shutdown request when a node rejoins the cluster or when a node has permanently left the cluster.
46
54
  Shutdown requests are never removed automatically by Elasticsearch.</p>
47
55
  <p>NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
@@ -86,6 +94,7 @@ class ShutdownClient(NamespacedClient):
86
94
  )
87
95
 
88
96
  @_rewrite_parameters()
97
+ @_availability_warning(Stability.STABLE, Visibility.PRIVATE)
89
98
  def get_node(
90
99
  self,
91
100
  *,
@@ -108,7 +117,8 @@ class ShutdownClient(NamespacedClient):
108
117
 
109
118
  `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-shutdown-get-node>`_
110
119
 
111
- :param node_id: Which node for which to retrieve the shutdown status
120
+ :param node_id: Comma-separated list of nodes for which to retrieve the shutdown
121
+ status
112
122
  :param master_timeout: Period to wait for a connection to the master node. If
113
123
  no response is received before the timeout expires, the request fails and
114
124
  returns an error.
@@ -144,6 +154,7 @@ class ShutdownClient(NamespacedClient):
144
154
  @_rewrite_parameters(
145
155
  body_fields=("reason", "type", "allocation_delay", "target_node_name"),
146
156
  )
157
+ @_availability_warning(Stability.STABLE, Visibility.PRIVATE)
147
158
  def put_node(
148
159
  self,
149
160
  *,