Skip to content

Commit a2cd77b

Browse files
Auto-generated API code (#2838)
1 parent 6eb283e commit a2cd77b

18 files changed

+856
-216
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3114,7 +3114,7 @@ async def knn_search(
31143114
</ul>
31153115
31163116
3117-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/knn-search-api.html>`_
3117+
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/knn-search-api.html>`_
31183118
31193119
:param index: A comma-separated list of index names to search; use `_all` or
31203120
to perform the operation on all indices.
@@ -4446,7 +4446,7 @@ async def scripts_painless_execute(
44464446
<p>Each context requires a script, but additional parameters depend on the context you're using for that script.</p>
44474447
44484448
4449-
`<https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html>`_
4449+
`<https://www.elastic.co/guide/en/elasticsearch/painless/9.0/painless-execute-api.html>`_
44504450
44514451
:param context: The context that the script should run in. NOTE: Result ordering
44524452
in the field contexts is not guaranteed.

elasticsearch/_async/client/connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ async def update_filtering_validation(
15391539
<p>Update the draft filtering validation info for a connector.</p>
15401540
15411541
1542-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/update-connector-filtering-validation-api.html>`_
1542+
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-filtering-validation-api.html>`_
15431543
15441544
:param connector_id: The unique identifier of the connector to be updated
15451545
:param validation:
@@ -1710,7 +1710,7 @@ async def update_native(
17101710
<p>Update the connector is_native flag.</p>
17111711
17121712
1713-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/update-connector-native-api.html>`_
1713+
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-native-api.html>`_
17141714
17151715
:param connector_id: The unique identifier of the connector to be updated
17161716
:param is_native:

elasticsearch/_async/client/esql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ async def async_query_stop(
323323
If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it.</p>
324324
325325
326-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-async-query-stop-api.html>`_
326+
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-async-query-stop-api.html>`_
327327
328328
:param id: The unique identifier of the query. A query ID is provided in the
329329
ES|QL async query API response for a query that does not complete in the
@@ -408,7 +408,7 @@ async def query(
408408
Get search results for an ES|QL (Elasticsearch query language) query.</p>
409409
410410
411-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-rest.html>`_
411+
`<https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-rest.html>`_
412412
413413
:param query: The ES|QL query API accepts an ES|QL query string in the query
414414
parameter, runs it, and returns the results.

elasticsearch/_async/client/indices.py

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ async def cancel_migrate_reindex(
265265
<p>Cancel a migration reindex attempt for a data stream or index.</p>
266266
267267
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>`_
269269
270270
:param index: The index or data stream name
271271
"""
@@ -794,7 +794,7 @@ async def create_from(
794794
<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>
795795
796796
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>`_
798798
799799
:param source: The source index or data stream name
800800
:param dest: The destination index or data stream name
@@ -2487,6 +2487,7 @@ async def get_field_mapping(
24872487
human: t.Optional[bool] = None,
24882488
ignore_unavailable: t.Optional[bool] = None,
24892489
include_defaults: t.Optional[bool] = None,
2490+
local: t.Optional[bool] = None,
24902491
pretty: t.Optional[bool] = None,
24912492
) -> ObjectApiResponse[t.Any]:
24922493
"""
@@ -2515,6 +2516,8 @@ async def get_field_mapping(
25152516
:param ignore_unavailable: If `false`, the request returns an error if it targets
25162517
a missing or closed index.
25172518
: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.
25182521
"""
25192522
if fields in SKIP_IN_PATH:
25202523
raise ValueError("Empty value passed for parameter 'fields'")
@@ -2542,6 +2545,8 @@ async def get_field_mapping(
25422545
__query["ignore_unavailable"] = ignore_unavailable
25432546
if include_defaults is not None:
25442547
__query["include_defaults"] = include_defaults
2548+
if local is not None:
2549+
__query["local"] = local
25452550
if pretty is not None:
25462551
__query["pretty"] = pretty
25472552
__headers = {"accept": "application/json"}
@@ -2726,7 +2731,7 @@ async def get_migrate_reindex_status(
27262731
<p>Get the status of a migration reindex attempt for a data stream or index.</p>
27272732
27282733
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>`_
27302735
27312736
:param index: The index or data stream name.
27322737
"""
@@ -2945,7 +2950,7 @@ async def migrate_reindex(
29452950
The persistent task ID is returned immediately and the reindexing work is completed in that task.</p>
29462951
29472952
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>`_
29492954
29502955
:param reindex:
29512956
"""
@@ -3006,7 +3011,7 @@ async def migrate_to_data_stream(
30063011
The write index for the alias becomes the write index for the stream.</p>
30073012
30083013
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>`_
30103015
30113016
:param name: Name of the index alias to convert to a data stream.
30123017
:param master_timeout: Period to wait for a connection to the master node. If
@@ -3062,7 +3067,7 @@ async def modify_data_stream(
30623067
Performs one or more data stream modification actions in a single atomic operation.</p>
30633068
30643069
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>`_
30663071
30673072
:param actions: Actions to perform.
30683073
"""
@@ -3227,7 +3232,7 @@ async def promote_data_stream(
32273232
This will affect the lifecycle management of the data stream and interfere with the data stream size and retention.</p>
32283233
32293234
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>`_
32313236
32323237
:param name: The name of the data stream
32333238
:param master_timeout: Period to wait for a connection to the master node. If
@@ -3293,7 +3298,7 @@ async def put_alias(
32933298
Adds a data stream or index to an alias.</p>
32943299
32953300
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>`_
32973302
32983303
:param index: Comma-separated list of data streams or indices to add. Supports
32993304
wildcards (`*`). Wildcard patterns that match both data streams and indices
@@ -3400,7 +3405,7 @@ async def put_data_lifecycle(
34003405
Update the data stream lifecycle of the specified data streams.</p>
34013406
34023407
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>`_
34043409
34053410
:param name: Comma-separated list of data streams used to limit the request.
34063411
Supports wildcards (`*`). To target all data streams use `*` or `_all`.
@@ -3528,7 +3533,7 @@ async def put_index_template(
35283533
If an entry already exists with the same key, then it is overwritten by the new definition.</p>
35293534
35303535
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>`_
35323537
35333538
:param name: Index or template name
35343539
:param allow_auto_create: This setting overrides the value of the `action.auto_create_index`
@@ -5372,7 +5377,7 @@ async def update_aliases(
53725377
Adds a data stream or index to an alias.</p>
53735378
53745379
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>`_
53765381
53775382
:param actions: Actions to perform.
53785383
:param master_timeout: Period to wait for a connection to the master node. If
@@ -5451,7 +5456,7 @@ async def validate_query(
54515456
Validates a query without running it.</p>
54525457
54535458
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>`_
54555460
54565461
:param index: Comma-separated list of data streams, indices, and aliases to search.
54575462
Supports wildcards (`*`). To search all data streams or indices, omit this

0 commit comments

Comments
 (0)