Skip to content

Commit 1a420fe

Browse files
Auto-generated API code
1 parent b875a0b commit 1a420fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+2986
-1770
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 669 additions & 224 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/async_search.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def delete(
4444
If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the <code>cancel_task</code> cluster privilege.</p>
4545
4646
47-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
47+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit>`_
4848
4949
:param id: A unique identifier for the async search.
5050
"""
@@ -94,11 +94,11 @@ async def get(
9494
If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.</p>
9595
9696
97-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
97+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit>`_
9898
9999
:param id: A unique identifier for the async search.
100-
:param keep_alive: Specifies how long the async search should be available in
101-
the cluster. When not specified, the `keep_alive` set with the corresponding
100+
:param keep_alive: The length of time that the async search should be available
101+
in the cluster. When not specified, the `keep_alive` set with the corresponding
102102
submit async request will be used. Otherwise, it is possible to override
103103
the value and extend the validity of the request. When this period expires,
104104
the search, if still running, is cancelled. If the search is completed, its
@@ -157,13 +157,17 @@ async def status(
157157
158158
<p>Get the async search status.</p>
159159
<p>Get the status of a previously submitted async search request given its identifier, without retrieving search results.
160-
If the Elasticsearch security features are enabled, use of this API is restricted to the <code>monitoring_user</code> role.</p>
160+
If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to:</p>
161+
<ul>
162+
<li>The user or API key that submitted the original async search request.</li>
163+
<li>Users that have the <code>monitor</code> cluster privilege or greater privileges.</li>
164+
</ul>
161165
162166
163-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
167+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit>`_
164168
165169
:param id: A unique identifier for the async search.
166-
:param keep_alive: Specifies how long the async search needs to be available.
170+
:param keep_alive: The length of time that the async search needs to be available.
167171
Ongoing async searches and any saved search results are deleted after this
168172
period.
169173
"""
@@ -341,7 +345,7 @@ async def submit(
341345
The maximum allowed size for a stored async search response can be set by changing the <code>search.max_async_search_response_size</code> cluster level setting.</p>
342346
343347
344-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
348+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit>`_
345349
346350
:param index: A comma-separated list of index names to search; use `_all` or
347351
empty string to perform the operation on all indices

elasticsearch/_async/client/autoscaling.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def delete_autoscaling_policy(
4444
<p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
4545
4646
47-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-delete-autoscaling-policy.html>`_
47+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-delete-autoscaling-policy>`_
4848
4949
:param name: the name of the autoscaling policy
5050
:param master_timeout: Period to wait for a connection to the master node. If
@@ -104,7 +104,7 @@ async def get_autoscaling_capacity(
104104
Do not use this information to make autoscaling decisions.</p>
105105
106106
107-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-get-autoscaling-capacity.html>`_
107+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-get-autoscaling-capacity>`_
108108
109109
:param master_timeout: Period to wait for a connection to the master node. If
110110
no response is received before the timeout expires, the request fails and
@@ -151,7 +151,7 @@ async def get_autoscaling_policy(
151151
<p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
152152
153153
154-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-get-autoscaling-capacity.html>`_
154+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-get-autoscaling-capacity>`_
155155
156156
:param name: the name of the autoscaling policy
157157
:param master_timeout: Period to wait for a connection to the master node. If
@@ -206,7 +206,7 @@ async def put_autoscaling_policy(
206206
<p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
207207
208208
209-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-put-autoscaling-policy.html>`_
209+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-put-autoscaling-policy>`_
210210
211211
:param name: the name of the autoscaling policy
212212
:param policy:

elasticsearch/_async/client/cat.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async def aliases(
6464
<p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.</p>
6565
6666
67-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html>`_
67+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-aliases>`_
6868
6969
:param name: A comma-separated list of aliases to retrieve. Supports wildcards
7070
(`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
@@ -154,7 +154,7 @@ async def allocation(
154154
<p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.</p>
155155
156156
157-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html>`_
157+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-allocation>`_
158158
159159
:param node_id: A comma-separated list of node identifiers or names used to limit
160160
the returned information.
@@ -243,7 +243,7 @@ async def component_templates(
243243
They are not intended for use by applications. For application consumption, use the get component template API.</p>
244244
245245
246-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html>`_
246+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-component-templates>`_
247247
248248
:param name: The name of the component template. It accepts wildcard expressions.
249249
If it is omitted, all component templates are returned.
@@ -327,7 +327,7 @@ async def count(
327327
They are not intended for use by applications. For application consumption, use the count API.</p>
328328
329329
330-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html>`_
330+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-count>`_
331331
332332
:param index: A comma-separated list of data streams, indices, and aliases used
333333
to limit the request. It supports wildcards (`*`). To target all data streams
@@ -405,7 +405,7 @@ async def fielddata(
405405
They are not intended for use by applications. For application consumption, use the nodes stats API.</p>
406406
407407
408-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html>`_
408+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-fielddata>`_
409409
410410
:param fields: Comma-separated list of fields used to limit returned information.
411411
To retrieve all fields, omit this parameter.
@@ -491,7 +491,7 @@ async def health(
491491
You also can use the API to track the recovery of a large cluster over a longer period of time.</p>
492492
493493
494-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html>`_
494+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-health>`_
495495
496496
:param format: Specifies the format to return the columnar data in, can be set
497497
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -549,7 +549,7 @@ async def help(self) -> TextApiResponse:
549549
<p>Get help for the CAT APIs.</p>
550550
551551
552-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html>`_
552+
`<https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cat>`_
553553
"""
554554
__path_parts: t.Dict[str, str] = {}
555555
__path = "/_cat"
@@ -616,7 +616,7 @@ async def indices(
616616
They are not intended for use by applications. For application consumption, use an index endpoint.</p>
617617
618618
619-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html>`_
619+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-indices>`_
620620
621621
:param index: Comma-separated list of data streams, indices, and aliases used
622622
to limit the request. Supports wildcards (`*`). To target all data streams
@@ -714,7 +714,7 @@ async def master(
714714
<p>IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.</p>
715715
716716
717-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html>`_
717+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-master>`_
718718
719719
:param format: Specifies the format to return the columnar data in, can be set
720720
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -892,7 +892,7 @@ async def ml_data_frame_analytics(
892892
application consumption, use the get data frame analytics jobs statistics API.</p>
893893
894894
895-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-dfanalytics.html>`_
895+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-data-frame-analytics>`_
896896
897897
:param id: The ID of the data frame analytics to fetch
898898
:param allow_no_match: Whether to ignore if a wildcard expression matches no
@@ -1060,7 +1060,7 @@ async def ml_datafeeds(
10601060
application consumption, use the get datafeed statistics API.</p>
10611061
10621062
1063-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-datafeeds.html>`_
1063+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-datafeeds>`_
10641064
10651065
:param datafeed_id: A numerical character string that uniquely identifies the
10661066
datafeed.
@@ -1426,7 +1426,7 @@ async def ml_jobs(
14261426
application consumption, use the get anomaly detection job statistics API.</p>
14271427
14281428
1429-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-anomaly-detectors.html>`_
1429+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-jobs>`_
14301430
14311431
:param job_id: Identifier for the anomaly detection job.
14321432
:param allow_no_match: Specifies what to do when the request: * Contains wildcard
@@ -1611,7 +1611,7 @@ async def ml_trained_models(
16111611
application consumption, use the get trained models statistics API.</p>
16121612
16131613
1614-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-trained-model.html>`_
1614+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-trained-models>`_
16151615
16161616
:param model_id: A unique identifier for the trained model.
16171617
:param allow_no_match: Specifies what to do when the request: contains wildcard
@@ -1704,7 +1704,7 @@ async def nodeattrs(
17041704
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.</p>
17051705
17061706
1707-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html>`_
1707+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodeattrs>`_
17081708
17091709
:param format: Specifies the format to return the columnar data in, can be set
17101710
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1787,7 +1787,7 @@ async def nodes(
17871787
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.</p>
17881788
17891789
1790-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html>`_
1790+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodes>`_
17911791
17921792
:param bytes: The unit used to display byte values.
17931793
:param format: Specifies the format to return the columnar data in, can be set
@@ -1874,7 +1874,7 @@ async def pending_tasks(
18741874
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.</p>
18751875
18761876
1877-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html>`_
1877+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-pending-tasks>`_
18781878
18791879
:param format: Specifies the format to return the columnar data in, can be set
18801880
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1954,7 +1954,7 @@ async def plugins(
19541954
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.</p>
19551955
19561956
1957-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html>`_
1957+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-plugins>`_
19581958
19591959
:param format: Specifies the format to return the columnar data in, can be set
19601960
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -2042,7 +2042,7 @@ async def recovery(
20422042
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.</p>
20432043
20442044
2045-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html>`_
2045+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-recovery>`_
20462046
20472047
:param index: A comma-separated list of data streams, indices, and aliases used
20482048
to limit the request. Supports wildcards (`*`). To target all data streams
@@ -2130,7 +2130,7 @@ async def repositories(
21302130
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.</p>
21312131
21322132
2133-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html>`_
2133+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-repositories>`_
21342134
21352135
:param format: Specifies the format to return the columnar data in, can be set
21362136
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -2211,7 +2211,7 @@ async def segments(
22112211
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.</p>
22122212
22132213
2214-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html>`_
2214+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-segments>`_
22152215
22162216
:param index: A comma-separated list of data streams, indices, and aliases used
22172217
to limit the request. Supports wildcards (`*`). To target all data streams
@@ -2305,7 +2305,7 @@ async def shards(
23052305
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.</p>
23062306
23072307
2308-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html>`_
2308+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-shards>`_
23092309
23102310
:param index: A comma-separated list of data streams, indices, and aliases used
23112311
to limit the request. Supports wildcards (`*`). To target all data streams
@@ -2394,7 +2394,7 @@ async def snapshots(
23942394
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.</p>
23952395
23962396
2397-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html>`_
2397+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-snapshots>`_
23982398
23992399
:param repository: A comma-separated list of snapshot repositories used to limit
24002400
the request. Accepts wildcard expressions. `_all` returns all repositories.
@@ -2487,7 +2487,7 @@ async def tasks(
24872487
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.</p>
24882488
24892489
2490-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html>`_
2490+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-tasks>`_
24912491
24922492
:param actions: The task action names, which are used to limit the response.
24932493
:param detailed: If `true`, the response includes detailed information about
@@ -2581,7 +2581,7 @@ async def templates(
25812581
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.</p>
25822582
25832583
2584-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html>`_
2584+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-templates>`_
25852585
25862586
:param name: The name of the template to return. Accepts wildcard expressions.
25872587
If omitted, all templates are returned.
@@ -2669,7 +2669,7 @@ async def thread_pool(
26692669
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.</p>
26702670
26712671
2672-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html>`_
2672+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-thread-pool>`_
26732673
26742674
:param thread_pool_patterns: A comma-separated list of thread pool names used
26752675
to limit the request. Accepts wildcard expressions.
@@ -2926,7 +2926,7 @@ async def transforms(
29262926
application consumption, use the get transform statistics API.</p>
29272927
29282928
2929-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-transforms.html>`_
2929+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-transforms>`_
29302930
29312931
:param transform_id: A transform identifier or a wildcard expression. If you
29322932
do not specify one of these options, the API returns information for all

0 commit comments

Comments
 (0)