@@ -1208,7 +1208,7 @@ async def delete_data_stream_options(
1208
1208
Removes the data stream options from a data stream.</p>
1209
1209
1210
1210
1211
- `<https://www.elastic.co/guide/en/elasticsearch/reference/master /index.html>`_
1211
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/9.1 /index.html>`_
1212
1212
1213
1213
:param name: A comma-separated list of data streams of which the data stream
1214
1214
options will be deleted; use `*` to get all data streams
@@ -2542,57 +2542,6 @@ async def get_data_stream(
2542
2542
path_parts = __path_parts ,
2543
2543
)
2544
2544
2545
- @_rewrite_parameters ()
2546
- async def get_data_stream_mappings (
2547
- self ,
2548
- * ,
2549
- name : t .Union [str , t .Sequence [str ]],
2550
- error_trace : t .Optional [bool ] = None ,
2551
- filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
2552
- human : t .Optional [bool ] = None ,
2553
- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
2554
- pretty : t .Optional [bool ] = None ,
2555
- ) -> ObjectApiResponse [t .Any ]:
2556
- """
2557
- .. raw:: html
2558
-
2559
- <p>Get data stream mappings.</p>
2560
- <p>Get mapping information for one or more data streams.</p>
2561
-
2562
-
2563
- `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream-mappings>`_
2564
-
2565
- :param name: A comma-separated list of data streams or data stream patterns.
2566
- Supports wildcards (`*`).
2567
- :param master_timeout: The period to wait for a connection to the master node.
2568
- If no response is received before the timeout expires, the request fails
2569
- and returns an error.
2570
- """
2571
- if name in SKIP_IN_PATH :
2572
- raise ValueError ("Empty value passed for parameter 'name'" )
2573
- __path_parts : t .Dict [str , str ] = {"name" : _quote (name )}
2574
- __path = f'/_data_stream/{ __path_parts ["name" ]} /_mappings'
2575
- __query : t .Dict [str , t .Any ] = {}
2576
- if error_trace is not None :
2577
- __query ["error_trace" ] = error_trace
2578
- if filter_path is not None :
2579
- __query ["filter_path" ] = filter_path
2580
- if human is not None :
2581
- __query ["human" ] = human
2582
- if master_timeout is not None :
2583
- __query ["master_timeout" ] = master_timeout
2584
- if pretty is not None :
2585
- __query ["pretty" ] = pretty
2586
- __headers = {"accept" : "application/json" }
2587
- return await self .perform_request ( # type: ignore[return-value]
2588
- "GET" ,
2589
- __path ,
2590
- params = __query ,
2591
- headers = __headers ,
2592
- endpoint_id = "indices.get_data_stream_mappings" ,
2593
- path_parts = __path_parts ,
2594
- )
2595
-
2596
2545
@_rewrite_parameters ()
2597
2546
async def get_data_stream_options (
2598
2547
self ,
@@ -2619,7 +2568,7 @@ async def get_data_stream_options(
2619
2568
<p>Get the data stream options configuration of one or more data streams.</p>
2620
2569
2621
2570
2622
- `<https://www.elastic.co/guide/en/elasticsearch/reference/master /index.html>`_
2571
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/9.1 /index.html>`_
2623
2572
2624
2573
:param name: Comma-separated list of data streams to limit the request. Supports
2625
2574
wildcards (`*`). To target all data streams, omit this parameter or use `*`
@@ -3704,83 +3653,6 @@ async def put_data_lifecycle(
3704
3653
path_parts = __path_parts ,
3705
3654
)
3706
3655
3707
- @_rewrite_parameters (
3708
- body_name = "mappings" ,
3709
- )
3710
- async def put_data_stream_mappings (
3711
- self ,
3712
- * ,
3713
- name : t .Union [str , t .Sequence [str ]],
3714
- mappings : t .Optional [t .Mapping [str , t .Any ]] = None ,
3715
- body : t .Optional [t .Mapping [str , t .Any ]] = None ,
3716
- dry_run : t .Optional [bool ] = None ,
3717
- error_trace : t .Optional [bool ] = None ,
3718
- filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
3719
- human : t .Optional [bool ] = None ,
3720
- master_timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
3721
- pretty : t .Optional [bool ] = None ,
3722
- timeout : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
3723
- ) -> ObjectApiResponse [t .Any ]:
3724
- """
3725
- .. raw:: html
3726
-
3727
- <p>Update data stream mappings.</p>
3728
- <p>This API can be used to override mappings on specific data streams. These overrides will take precedence over what
3729
- is specified in the template that the data stream matches. The mapping change is only applied to new write indices
3730
- that are created during rollover after this API is called. No indices are changed by this API.</p>
3731
-
3732
-
3733
- `<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-data-stream-mappings>`_
3734
-
3735
- :param name: A comma-separated list of data streams or data stream patterns.
3736
- :param mappings:
3737
- :param dry_run: If `true`, the request does not actually change the mappings
3738
- on any data streams. Instead, it simulates changing the settings and reports
3739
- back to the user what would have happened had these settings actually been
3740
- applied.
3741
- :param master_timeout: The period to wait for a connection to the master node.
3742
- If no response is received before the timeout expires, the request fails
3743
- and returns an error.
3744
- :param timeout: The period to wait for a response. If no response is received
3745
- before the timeout expires, the request fails and returns an error.
3746
- """
3747
- if name in SKIP_IN_PATH :
3748
- raise ValueError ("Empty value passed for parameter 'name'" )
3749
- if mappings is None and body is None :
3750
- raise ValueError (
3751
- "Empty value passed for parameters 'mappings' and 'body', one of them should be set."
3752
- )
3753
- elif mappings is not None and body is not None :
3754
- raise ValueError ("Cannot set both 'mappings' and 'body'" )
3755
- __path_parts : t .Dict [str , str ] = {"name" : _quote (name )}
3756
- __path = f'/_data_stream/{ __path_parts ["name" ]} /_mappings'
3757
- __query : t .Dict [str , t .Any ] = {}
3758
- if dry_run is not None :
3759
- __query ["dry_run" ] = dry_run
3760
- if error_trace is not None :
3761
- __query ["error_trace" ] = error_trace
3762
- if filter_path is not None :
3763
- __query ["filter_path" ] = filter_path
3764
- if human is not None :
3765
- __query ["human" ] = human
3766
- if master_timeout is not None :
3767
- __query ["master_timeout" ] = master_timeout
3768
- if pretty is not None :
3769
- __query ["pretty" ] = pretty
3770
- if timeout is not None :
3771
- __query ["timeout" ] = timeout
3772
- __body = mappings if mappings is not None else body
3773
- __headers = {"accept" : "application/json" , "content-type" : "application/json" }
3774
- return await self .perform_request ( # type: ignore[return-value]
3775
- "PUT" ,
3776
- __path ,
3777
- params = __query ,
3778
- headers = __headers ,
3779
- body = __body ,
3780
- endpoint_id = "indices.put_data_stream_mappings" ,
3781
- path_parts = __path_parts ,
3782
- )
3783
-
3784
3656
@_rewrite_parameters (
3785
3657
body_fields = ("failure_store" ,),
3786
3658
)
@@ -3812,7 +3684,7 @@ async def put_data_stream_options(
3812
3684
Update the data stream options of the specified data streams.</p>
3813
3685
3814
3686
3815
- `<https://www.elastic.co/guide/en/elasticsearch/reference/master /index.html>`_
3687
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/9.1 /index.html>`_
3816
3688
3817
3689
:param name: Comma-separated list of data streams used to limit the request.
3818
3690
Supports wildcards (`*`). To target all data streams use `*` or `_all`.
0 commit comments