@@ -265,7 +265,7 @@ async def cancel_migrate_reindex(
265
265
<p>Cancel a migration reindex attempt for a data stream or index.</p>
266
266
267
267
268
- `<https://www.elastic.co/guide/en/elasticsearch/reference/master /migrate-data-stream.html>`_
268
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/9.0 /migrate-data-stream.html>`_
269
269
270
270
:param index: The index or data stream name
271
271
"""
@@ -794,7 +794,7 @@ async def create_from(
794
794
<p>Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values.</p>
795
795
796
796
797
- `<https://www.elastic.co/guide/en/elasticsearch/reference/master /migrate-data-stream.html>`_
797
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/9.0 /migrate-data-stream.html>`_
798
798
799
799
:param source: The source index or data stream name
800
800
:param dest: The destination index or data stream name
@@ -2487,6 +2487,7 @@ async def get_field_mapping(
2487
2487
human : t .Optional [bool ] = None ,
2488
2488
ignore_unavailable : t .Optional [bool ] = None ,
2489
2489
include_defaults : t .Optional [bool ] = None ,
2490
+ local : t .Optional [bool ] = None ,
2490
2491
pretty : t .Optional [bool ] = None ,
2491
2492
) -> ObjectApiResponse [t .Any ]:
2492
2493
"""
@@ -2515,6 +2516,8 @@ async def get_field_mapping(
2515
2516
:param ignore_unavailable: If `false`, the request returns an error if it targets
2516
2517
a missing or closed index.
2517
2518
:param include_defaults: If `true`, return all default settings in the response.
2519
+ :param local: If `true`, the request retrieves information from the local node
2520
+ only.
2518
2521
"""
2519
2522
if fields in SKIP_IN_PATH :
2520
2523
raise ValueError ("Empty value passed for parameter 'fields'" )
@@ -2542,6 +2545,8 @@ async def get_field_mapping(
2542
2545
__query ["ignore_unavailable" ] = ignore_unavailable
2543
2546
if include_defaults is not None :
2544
2547
__query ["include_defaults" ] = include_defaults
2548
+ if local is not None :
2549
+ __query ["local" ] = local
2545
2550
if pretty is not None :
2546
2551
__query ["pretty" ] = pretty
2547
2552
__headers = {"accept" : "application/json" }
@@ -2726,7 +2731,7 @@ async def get_migrate_reindex_status(
2726
2731
<p>Get the status of a migration reindex attempt for a data stream or index.</p>
2727
2732
2728
2733
2729
- `<https://www.elastic.co/guide/en/elasticsearch/reference/master /migrate-data-stream.html>`_
2734
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/9.0 /migrate-data-stream.html>`_
2730
2735
2731
2736
:param index: The index or data stream name.
2732
2737
"""
@@ -2945,7 +2950,7 @@ async def migrate_reindex(
2945
2950
The persistent task ID is returned immediately and the reindexing work is completed in that task.</p>
2946
2951
2947
2952
2948
- `<https://www.elastic.co/guide/en/elasticsearch/reference/master /migrate-data-stream.html>`_
2953
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/9.0 /migrate-data-stream.html>`_
2949
2954
2950
2955
:param reindex:
2951
2956
"""
@@ -3006,7 +3011,7 @@ async def migrate_to_data_stream(
3006
3011
The write index for the alias becomes the write index for the stream.</p>
3007
3012
3008
3013
3009
- `<https://www.elastic.co/guide/en/ elasticsearch/reference/master/ data-streams.html >`_
3014
+ `<https://www.elastic.co/docs/api/doc/ elasticsearch/operation/operation-indices-migrate-to- data-stream >`_
3010
3015
3011
3016
:param name: Name of the index alias to convert to a data stream.
3012
3017
:param master_timeout: Period to wait for a connection to the master node. If
@@ -3062,7 +3067,7 @@ async def modify_data_stream(
3062
3067
Performs one or more data stream modification actions in a single atomic operation.</p>
3063
3068
3064
3069
3065
- `<https://www.elastic.co/guide/en/ elasticsearch/reference/master/ data-streams.html >`_
3070
+ `<https://www.elastic.co/docs/api/doc/ elasticsearch/operation/operation-indices-modify- data-stream >`_
3066
3071
3067
3072
:param actions: Actions to perform.
3068
3073
"""
@@ -3227,7 +3232,7 @@ async def promote_data_stream(
3227
3232
This will affect the lifecycle management of the data stream and interfere with the data stream size and retention.</p>
3228
3233
3229
3234
3230
- `<https://www.elastic.co/guide/en/ elasticsearch/reference/master/ data-streams.html >`_
3235
+ `<https://www.elastic.co/docs/api/doc/ elasticsearch/operation/operation-indices-promote- data-stream >`_
3231
3236
3232
3237
:param name: The name of the data stream
3233
3238
:param master_timeout: Period to wait for a connection to the master node. If
@@ -3293,7 +3298,7 @@ async def put_alias(
3293
3298
Adds a data stream or index to an alias.</p>
3294
3299
3295
3300
3296
- `<https://www.elastic.co/guide/en/ elasticsearch/reference/master/ indices-aliases.html >`_
3301
+ `<https://www.elastic.co/docs/api/doc/ elasticsearch/operation/operation- indices-put-alias >`_
3297
3302
3298
3303
:param index: Comma-separated list of data streams or indices to add. Supports
3299
3304
wildcards (`*`). Wildcard patterns that match both data streams and indices
@@ -3400,7 +3405,7 @@ async def put_data_lifecycle(
3400
3405
Update the data stream lifecycle of the specified data streams.</p>
3401
3406
3402
3407
3403
- `<https://www.elastic.co/guide/en/ elasticsearch/reference/master/data-streams -put-lifecycle.html >`_
3408
+ `<https://www.elastic.co/docs/api/doc/ elasticsearch/operation/operation-indices -put-data- lifecycle>`_
3404
3409
3405
3410
:param name: Comma-separated list of data streams used to limit the request.
3406
3411
Supports wildcards (`*`). To target all data streams use `*` or `_all`.
@@ -3528,7 +3533,7 @@ async def put_index_template(
3528
3533
If an entry already exists with the same key, then it is overwritten by the new definition.</p>
3529
3534
3530
3535
3531
- `<https://www.elastic.co/guide/en/ elasticsearch/reference/master/ indices-put-template.html >`_
3536
+ `<https://www.elastic.co/docs/api/doc/ elasticsearch/operation/operation- indices-put-index- template>`_
3532
3537
3533
3538
:param name: Index or template name
3534
3539
:param allow_auto_create: This setting overrides the value of the `action.auto_create_index`
@@ -5372,7 +5377,7 @@ async def update_aliases(
5372
5377
Adds a data stream or index to an alias.</p>
5373
5378
5374
5379
5375
- `<https://www.elastic.co/guide/en/ elasticsearch/reference/master/ indices-aliases.html >`_
5380
+ `<https://www.elastic.co/docs/api/doc/ elasticsearch/operation/operation- indices-update- aliases>`_
5376
5381
5377
5382
:param actions: Actions to perform.
5378
5383
:param master_timeout: Period to wait for a connection to the master node. If
@@ -5451,7 +5456,7 @@ async def validate_query(
5451
5456
Validates a query without running it.</p>
5452
5457
5453
5458
5454
- `<https://www.elastic.co/guide/en/ elasticsearch/reference/master/search- validate.html >`_
5459
+ `<https://www.elastic.co/docs/api/doc/ elasticsearch/operation/operation-indices- validate-query >`_
5455
5460
5456
5461
:param index: Comma-separated list of data streams, indices, and aliases to search.
5457
5462
Supports wildcards (`*`). To search all data streams or indices, omit this
0 commit comments