Skip to content

Commit a9bbab7

Browse files
committed
Update APIs for 8.5-SNAPSHOT
1 parent 8896e5b commit a9bbab7

Some content is hidden

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

66 files changed

+932
-826
lines changed

Diff for: elasticsearch/_async/client/__init__.py

+43-43
Large diffs are not rendered by default.

Diff for: elasticsearch/_async/client/async_search.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def delete(
4040
Deletes an async search by ID. If the search is still running, the search request
4141
will be cancelled. Otherwise, the saved search results are deleted.
4242
43-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
43+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/async-search.html>`_
4444
4545
:param id: The async search ID
4646
"""
@@ -82,7 +82,7 @@ async def get(
8282
Retrieves the results of a previously submitted async search request given its
8383
ID.
8484
85-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
85+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/async-search.html>`_
8686
8787
:param id: The async search ID
8888
:param keep_alive: Specify the time interval in which the results (partial or
@@ -131,7 +131,7 @@ async def status(
131131
Retrieves the status of a previously submitted async search request given its
132132
ID.
133133
134-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
134+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/async-search.html>`_
135135
136136
:param id: The async search ID
137137
"""
@@ -295,7 +295,7 @@ async def submit(
295295
"""
296296
Executes a search request asynchronously.
297297
298-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
298+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/async-search.html>`_
299299
300300
:param index: A comma-separated list of index names to search; use `_all` or
301301
empty string to perform the operation on all indices

Diff for: elasticsearch/_async/client/autoscaling.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def delete_autoscaling_policy(
4040
Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
4141
Direct use is not supported.
4242
43-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-delete-autoscaling-policy.html>`_
43+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/autoscaling-delete-autoscaling-policy.html>`_
4444
4545
:param name: the name of the autoscaling policy
4646
"""
@@ -76,7 +76,7 @@ async def get_autoscaling_capacity(
7676
Gets the current autoscaling capacity based on the configured autoscaling policy.
7777
Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
7878
79-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-get-autoscaling-capacity.html>`_
79+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/autoscaling-get-autoscaling-capacity.html>`_
8080
"""
8181
__path = "/_autoscaling/capacity"
8282
__query: t.Dict[str, t.Any] = {}
@@ -109,7 +109,7 @@ async def get_autoscaling_policy(
109109
Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
110110
Direct use is not supported.
111111
112-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-get-autoscaling-capacity.html>`_
112+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/autoscaling-get-autoscaling-capacity.html>`_
113113
114114
:param name: the name of the autoscaling policy
115115
"""
@@ -149,7 +149,7 @@ async def put_autoscaling_policy(
149149
Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
150150
Direct use is not supported.
151151
152-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-put-autoscaling-policy.html>`_
152+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/autoscaling-put-autoscaling-policy.html>`_
153153
154154
:param name: the name of the autoscaling policy
155155
:param policy:

Diff for: elasticsearch/_async/client/cat.py

+26-26
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def aliases(
6767
Shows information about currently configured aliases to indices including filter
6868
and routing infos.
6969
70-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html>`_
70+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-alias.html>`_
7171
7272
:param name: A comma-separated list of alias names to return
7373
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
@@ -151,7 +151,7 @@ async def allocation(
151151
Provides a snapshot of how many shards are allocated to each data node and how
152152
much disk space they are using.
153153
154-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html>`_
154+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-allocation.html>`_
155155
156156
:param node_id: A comma-separated list of node IDs or names to limit the returned
157157
information
@@ -229,7 +229,7 @@ async def component_templates(
229229
"""
230230
Returns information about existing component_templates templates.
231231
232-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-compoentn-templates.html>`_
232+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-compoentn-templates.html>`_
233233
234234
:param name: A pattern that returned component template names must match
235235
:param format: Specifies the format to return the columnar data in, can be set
@@ -304,7 +304,7 @@ async def count(
304304
Provides quick access to the document count of the entire cluster, or individual
305305
indices.
306306
307-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html>`_
307+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-count.html>`_
308308
309309
:param index: A comma-separated list of index names to limit the returned information
310310
:param format: Specifies the format to return the columnar data in, can be set
@@ -384,7 +384,7 @@ async def fielddata(
384384
Shows how much heap memory is currently being used by fielddata on every data
385385
node in the cluster.
386386
387-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html>`_
387+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-fielddata.html>`_
388388
389389
:param fields: A comma-separated list of fields to return the fielddata size
390390
:param bytes: The unit in which to display byte values
@@ -461,7 +461,7 @@ async def health(
461461
"""
462462
Returns a concise representation of the cluster health.
463463
464-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html>`_
464+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-health.html>`_
465465
466466
:param format: Specifies the format to return the columnar data in, can be set
467467
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -533,7 +533,7 @@ async def help(
533533
"""
534534
Returns help for the Cat APIs.
535535
536-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html>`_
536+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat.html>`_
537537
538538
:param format: Specifies the format to return the columnar data in, can be set
539539
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -628,7 +628,7 @@ async def indices(
628628
Returns information about indices: number of primaries and replicas, document
629629
counts, disk size, ...
630630
631-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html>`_
631+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-indices.html>`_
632632
633633
:param index: A comma-separated list of index names to limit the returned information
634634
:param bytes: The unit in which to display byte values
@@ -719,7 +719,7 @@ async def master(
719719
"""
720720
Returns information about the master node.
721721
722-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html>`_
722+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-master.html>`_
723723
724724
:param format: Specifies the format to return the columnar data in, can be set
725725
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -838,7 +838,7 @@ async def ml_data_frame_analytics(
838838
"""
839839
Gets configuration and usage information about data frame analytics jobs.
840840
841-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-dfanalytics.html>`_
841+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-dfanalytics.html>`_
842842
843843
:param id: The ID of the data frame analytics to fetch
844844
:param allow_no_match: Whether to ignore if a wildcard expression matches no
@@ -969,7 +969,7 @@ async def ml_datafeeds(
969969
"""
970970
Gets configuration and usage information about datafeeds.
971971
972-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-datafeeds.html>`_
972+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-datafeeds.html>`_
973973
974974
:param datafeed_id: A numerical character string that uniquely identifies the
975975
datafeed.
@@ -1106,7 +1106,7 @@ async def ml_jobs(
11061106
"""
11071107
Gets configuration and usage information about anomaly detection jobs.
11081108
1109-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-anomaly-detectors.html>`_
1109+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-anomaly-detectors.html>`_
11101110
11111111
:param job_id: Identifier for the anomaly detection job.
11121112
:param allow_no_match: Specifies what to do when the request: * Contains wildcard
@@ -1246,7 +1246,7 @@ async def ml_trained_models(
12461246
"""
12471247
Gets configuration and usage information about inference trained models.
12481248
1249-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-trained-model.html>`_
1249+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-trained-model.html>`_
12501250
12511251
:param model_id: The ID of the trained models stats to fetch
12521252
:param allow_no_match: Whether to ignore if a wildcard expression matches no
@@ -1331,7 +1331,7 @@ async def nodeattrs(
13311331
"""
13321332
Returns information about custom node attributes.
13331333
1334-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html>`_
1334+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-nodeattrs.html>`_
13351335
13361336
:param format: Specifies the format to return the columnar data in, can be set
13371337
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1404,7 +1404,7 @@ async def nodes(
14041404
"""
14051405
Returns basic statistics about performance of cluster nodes.
14061406
1407-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html>`_
1407+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-nodes.html>`_
14081408
14091409
:param bytes: The unit in which to display byte values
14101410
:param format: Specifies the format to return the columnar data in, can be set
@@ -1480,7 +1480,7 @@ async def pending_tasks(
14801480
"""
14811481
Returns a concise representation of the cluster pending tasks.
14821482
1483-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html>`_
1483+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-pending-tasks.html>`_
14841484
14851485
:param format: Specifies the format to return the columnar data in, can be set
14861486
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1549,7 +1549,7 @@ async def plugins(
15491549
"""
15501550
Returns information about installed plugins across nodes node.
15511551
1552-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html>`_
1552+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-plugins.html>`_
15531553
15541554
:param format: Specifies the format to return the columnar data in, can be set
15551555
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1624,7 +1624,7 @@ async def recovery(
16241624
"""
16251625
Returns information about index shard recoveries, both on-going completed.
16261626
1627-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html>`_
1627+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-recovery.html>`_
16281628
16291629
:param index: Comma-separated list or wildcard expression of index names to limit
16301630
the returned information
@@ -1708,7 +1708,7 @@ async def repositories(
17081708
"""
17091709
Returns information about snapshot repositories registered in the cluster.
17101710
1711-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html>`_
1711+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-repositories.html>`_
17121712
17131713
:param format: Specifies the format to return the columnar data in, can be set
17141714
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1781,7 +1781,7 @@ async def segments(
17811781
"""
17821782
Provides low-level information about the segments in the shards of an index.
17831783
1784-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html>`_
1784+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-segments.html>`_
17851785
17861786
:param index: A comma-separated list of index names to limit the returned information
17871787
:param bytes: The unit in which to display byte values
@@ -1861,7 +1861,7 @@ async def shards(
18611861
"""
18621862
Provides a detailed view of shard allocation on nodes.
18631863
1864-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html>`_
1864+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-shards.html>`_
18651865
18661866
:param index: A comma-separated list of index names to limit the returned information
18671867
:param bytes: The unit in which to display byte values
@@ -1941,7 +1941,7 @@ async def snapshots(
19411941
"""
19421942
Returns all snapshots in a specific repository.
19431943
1944-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html>`_
1944+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-snapshots.html>`_
19451945
19461946
:param repository: Name of repository from which to fetch the snapshot information
19471947
:param format: Specifies the format to return the columnar data in, can be set
@@ -2022,7 +2022,7 @@ async def tasks(
20222022
Returns information about the tasks currently executing on one or more nodes
20232023
in the cluster.
20242024
2025-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html>`_
2025+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/tasks.html>`_
20262026
20272027
:param actions: A comma-separated list of actions that should be returned. Leave
20282028
empty to return all.
@@ -2105,7 +2105,7 @@ async def templates(
21052105
"""
21062106
Returns information about existing templates.
21072107
2108-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html>`_
2108+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-templates.html>`_
21092109
21102110
:param name: A pattern that returned template names must match
21112111
:param format: Specifies the format to return the columnar data in, can be set
@@ -2185,7 +2185,7 @@ async def thread_pool(
21852185
Returns cluster-wide thread pool statistics per node. By default the active,
21862186
queue and rejected statistics are returned for all thread pools.
21872187
2188-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html>`_
2188+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-thread-pool.html>`_
21892189
21902190
:param thread_pool_patterns: List of thread pool names used to limit the request.
21912191
Accepts wildcard expressions.
@@ -2315,7 +2315,7 @@ async def transforms(
23152315
"""
23162316
Gets configuration and usage information about transforms.
23172317
2318-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-transforms.html>`_
2318+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.5/cat-transforms.html>`_
23192319
23202320
:param transform_id: The id of the transform for which to get stats. '_all' or
23212321
'*' implies all transforms

0 commit comments

Comments
 (0)