@@ -743,8 +743,7 @@ async def clear_scroll(
743
743
744
744
:param scroll_id: Scroll IDs to clear. To clear all scroll IDs, use `_all`.
745
745
"""
746
- __path_parts : t .Dict [str , str ]
747
- __path_parts = {}
746
+ __path_parts : t .Dict [str , str ] = {}
748
747
__path = "/_search/scroll"
749
748
__query : t .Dict [str , t .Any ] = {}
750
749
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -796,8 +795,7 @@ async def close_point_in_time(
796
795
"""
797
796
if id is None and body is None :
798
797
raise ValueError ("Empty value passed for parameter 'id'" )
799
- __path_parts : t .Dict [str , str ]
800
- __path_parts = {}
798
+ __path_parts : t .Dict [str , str ] = {}
801
799
__path = "/_pit"
802
800
__query : t .Dict [str , t .Any ] = {}
803
801
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -1038,8 +1036,7 @@ async def create(
1038
1036
)
1039
1037
elif document is not None and body is not None :
1040
1038
raise ValueError ("Cannot set both 'document' and 'body'" )
1041
- __path_parts : t .Dict [str , str ]
1042
- __path_parts = {"index" : _quote (index ), "id" : _quote (id )}
1039
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index ), "id" : _quote (id )}
1043
1040
__path = f'/{ __path_parts ["index" ]} /_create/{ __path_parts ["id" ]} '
1044
1041
__query : t .Dict [str , t .Any ] = {}
1045
1042
if error_trace is not None :
@@ -1130,8 +1127,7 @@ async def delete(
1130
1127
raise ValueError ("Empty value passed for parameter 'index'" )
1131
1128
if id in SKIP_IN_PATH :
1132
1129
raise ValueError ("Empty value passed for parameter 'id'" )
1133
- __path_parts : t .Dict [str , str ]
1134
- __path_parts = {"index" : _quote (index ), "id" : _quote (id )}
1130
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index ), "id" : _quote (id )}
1135
1131
__path = f'/{ __path_parts ["index" ]} /_doc/{ __path_parts ["id" ]} '
1136
1132
__query : t .Dict [str , t .Any ] = {}
1137
1133
if error_trace is not None :
@@ -1296,8 +1292,7 @@ async def delete_by_query(
1296
1292
"""
1297
1293
if index in SKIP_IN_PATH :
1298
1294
raise ValueError ("Empty value passed for parameter 'index'" )
1299
- __path_parts : t .Dict [str , str ]
1300
- __path_parts = {"index" : _quote (index )}
1295
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index )}
1301
1296
__path = f'/{ __path_parts ["index" ]} /_delete_by_query'
1302
1297
__query : t .Dict [str , t .Any ] = {}
1303
1298
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -1416,8 +1411,7 @@ async def delete_by_query_rethrottle(
1416
1411
"""
1417
1412
if task_id in SKIP_IN_PATH :
1418
1413
raise ValueError ("Empty value passed for parameter 'task_id'" )
1419
- __path_parts : t .Dict [str , str ]
1420
- __path_parts = {"task_id" : _quote (task_id )}
1414
+ __path_parts : t .Dict [str , str ] = {"task_id" : _quote (task_id )}
1421
1415
__path = f'/_delete_by_query/{ __path_parts ["task_id" ]} /_rethrottle'
1422
1416
__query : t .Dict [str , t .Any ] = {}
1423
1417
if error_trace is not None :
@@ -1468,8 +1462,7 @@ async def delete_script(
1468
1462
"""
1469
1463
if id in SKIP_IN_PATH :
1470
1464
raise ValueError ("Empty value passed for parameter 'id'" )
1471
- __path_parts : t .Dict [str , str ]
1472
- __path_parts = {"id" : _quote (id )}
1465
+ __path_parts : t .Dict [str , str ] = {"id" : _quote (id )}
1473
1466
__path = f'/_scripts/{ __path_parts ["id" ]} '
1474
1467
__query : t .Dict [str , t .Any ] = {}
1475
1468
if error_trace is not None :
@@ -1555,8 +1548,7 @@ async def exists(
1555
1548
raise ValueError ("Empty value passed for parameter 'index'" )
1556
1549
if id in SKIP_IN_PATH :
1557
1550
raise ValueError ("Empty value passed for parameter 'id'" )
1558
- __path_parts : t .Dict [str , str ]
1559
- __path_parts = {"index" : _quote (index ), "id" : _quote (id )}
1551
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index ), "id" : _quote (id )}
1560
1552
__path = f'/{ __path_parts ["index" ]} /_doc/{ __path_parts ["id" ]} '
1561
1553
__query : t .Dict [str , t .Any ] = {}
1562
1554
if error_trace is not None :
@@ -1654,8 +1646,7 @@ async def exists_source(
1654
1646
raise ValueError ("Empty value passed for parameter 'index'" )
1655
1647
if id in SKIP_IN_PATH :
1656
1648
raise ValueError ("Empty value passed for parameter 'id'" )
1657
- __path_parts : t .Dict [str , str ]
1658
- __path_parts = {"index" : _quote (index ), "id" : _quote (id )}
1649
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index ), "id" : _quote (id )}
1659
1650
__path = f'/{ __path_parts ["index" ]} /_source/{ __path_parts ["id" ]} '
1660
1651
__query : t .Dict [str , t .Any ] = {}
1661
1652
if error_trace is not None :
@@ -1761,8 +1752,7 @@ async def explain(
1761
1752
raise ValueError ("Empty value passed for parameter 'index'" )
1762
1753
if id in SKIP_IN_PATH :
1763
1754
raise ValueError ("Empty value passed for parameter 'id'" )
1764
- __path_parts : t .Dict [str , str ]
1765
- __path_parts = {"index" : _quote (index ), "id" : _quote (id )}
1755
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index ), "id" : _quote (id )}
1766
1756
__path = f'/{ __path_parts ["index" ]} /_explain/{ __path_parts ["id" ]} '
1767
1757
__query : t .Dict [str , t .Any ] = {}
1768
1758
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -1992,8 +1982,7 @@ async def get(
1992
1982
raise ValueError ("Empty value passed for parameter 'index'" )
1993
1983
if id in SKIP_IN_PATH :
1994
1984
raise ValueError ("Empty value passed for parameter 'id'" )
1995
- __path_parts : t .Dict [str , str ]
1996
- __path_parts = {"index" : _quote (index ), "id" : _quote (id )}
1985
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index ), "id" : _quote (id )}
1997
1986
__path = f'/{ __path_parts ["index" ]} /_doc/{ __path_parts ["id" ]} '
1998
1987
__query : t .Dict [str , t .Any ] = {}
1999
1988
if error_trace is not None :
@@ -2057,8 +2046,7 @@ async def get_script(
2057
2046
"""
2058
2047
if id in SKIP_IN_PATH :
2059
2048
raise ValueError ("Empty value passed for parameter 'id'" )
2060
- __path_parts : t .Dict [str , str ]
2061
- __path_parts = {"id" : _quote (id )}
2049
+ __path_parts : t .Dict [str , str ] = {"id" : _quote (id )}
2062
2050
__path = f'/_scripts/{ __path_parts ["id" ]} '
2063
2051
__query : t .Dict [str , t .Any ] = {}
2064
2052
if error_trace is not None :
@@ -2095,8 +2083,7 @@ async def get_script_context(
2095
2083
2096
2084
`<https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html>`_
2097
2085
"""
2098
- __path_parts : t .Dict [str , str ]
2099
- __path_parts = {}
2086
+ __path_parts : t .Dict [str , str ] = {}
2100
2087
__path = "/_script_context"
2101
2088
__query : t .Dict [str , t .Any ] = {}
2102
2089
if error_trace is not None :
@@ -2131,8 +2118,7 @@ async def get_script_languages(
2131
2118
2132
2119
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html>`_
2133
2120
"""
2134
- __path_parts : t .Dict [str , str ]
2135
- __path_parts = {}
2121
+ __path_parts : t .Dict [str , str ] = {}
2136
2122
__path = "/_script_language"
2137
2123
__query : t .Dict [str , t .Any ] = {}
2138
2124
if error_trace is not None :
@@ -2211,8 +2197,7 @@ async def get_source(
2211
2197
raise ValueError ("Empty value passed for parameter 'index'" )
2212
2198
if id in SKIP_IN_PATH :
2213
2199
raise ValueError ("Empty value passed for parameter 'id'" )
2214
- __path_parts : t .Dict [str , str ]
2215
- __path_parts = {"index" : _quote (index ), "id" : _quote (id )}
2200
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index ), "id" : _quote (id )}
2216
2201
__path = f'/{ __path_parts ["index" ]} /_source/{ __path_parts ["id" ]} '
2217
2202
__query : t .Dict [str , t .Any ] = {}
2218
2203
if error_trace is not None :
@@ -2455,8 +2440,7 @@ async def info(
2455
2440
2456
2441
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/index.html>`_
2457
2442
"""
2458
- __path_parts : t .Dict [str , str ]
2459
- __path_parts = {}
2443
+ __path_parts : t .Dict [str , str ] = {}
2460
2444
__path = "/"
2461
2445
__query : t .Dict [str , t .Any ] = {}
2462
2446
if error_trace is not None :
@@ -2537,8 +2521,7 @@ async def knn_search(
2537
2521
raise ValueError ("Empty value passed for parameter 'index'" )
2538
2522
if knn is None and body is None :
2539
2523
raise ValueError ("Empty value passed for parameter 'knn'" )
2540
- __path_parts : t .Dict [str , str ]
2541
- __path_parts = {"index" : _quote (index )}
2524
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index )}
2542
2525
__path = f'/{ __path_parts ["index" ]} /_knn_search'
2543
2526
__query : t .Dict [str , t .Any ] = {}
2544
2527
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -3069,8 +3052,7 @@ async def open_point_in_time(
3069
3052
raise ValueError ("Empty value passed for parameter 'index'" )
3070
3053
if keep_alive is None :
3071
3054
raise ValueError ("Empty value passed for parameter 'keep_alive'" )
3072
- __path_parts : t .Dict [str , str ]
3073
- __path_parts = {"index" : _quote (index )}
3055
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index )}
3074
3056
__path = f'/{ __path_parts ["index" ]} /_pit'
3075
3057
__query : t .Dict [str , t .Any ] = {}
3076
3058
if keep_alive is not None :
@@ -3335,8 +3317,7 @@ async def reindex(
3335
3317
raise ValueError ("Empty value passed for parameter 'dest'" )
3336
3318
if source is None and body is None :
3337
3319
raise ValueError ("Empty value passed for parameter 'source'" )
3338
- __path_parts : t .Dict [str , str ]
3339
- __path_parts = {}
3320
+ __path_parts : t .Dict [str , str ] = {}
3340
3321
__path = "/_reindex"
3341
3322
__query : t .Dict [str , t .Any ] = {}
3342
3323
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -3410,8 +3391,7 @@ async def reindex_rethrottle(
3410
3391
"""
3411
3392
if task_id in SKIP_IN_PATH :
3412
3393
raise ValueError ("Empty value passed for parameter 'task_id'" )
3413
- __path_parts : t .Dict [str , str ]
3414
- __path_parts = {"task_id" : _quote (task_id )}
3394
+ __path_parts : t .Dict [str , str ] = {"task_id" : _quote (task_id )}
3415
3395
__path = f'/_reindex/{ __path_parts ["task_id" ]} /_rethrottle'
3416
3396
__query : t .Dict [str , t .Any ] = {}
3417
3397
if error_trace is not None :
@@ -3528,8 +3508,7 @@ async def scripts_painless_execute(
3528
3508
:param context_setup: Additional parameters for the `context`.
3529
3509
:param script: The Painless script to execute.
3530
3510
"""
3531
- __path_parts : t .Dict [str , str ]
3532
- __path_parts = {}
3511
+ __path_parts : t .Dict [str , str ] = {}
3533
3512
__path = "/_scripts/painless/_execute"
3534
3513
__query : t .Dict [str , t .Any ] = {}
3535
3514
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -3591,8 +3570,7 @@ async def scroll(
3591
3570
"""
3592
3571
if scroll_id is None and body is None :
3593
3572
raise ValueError ("Empty value passed for parameter 'scroll_id'" )
3594
- __path_parts : t .Dict [str , str ]
3595
- __path_parts = {}
3573
+ __path_parts : t .Dict [str , str ] = {}
3596
3574
__path = "/_search/scroll"
3597
3575
__query : t .Dict [str , t .Any ] = {}
3598
3576
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -4234,8 +4212,7 @@ async def search_mvt(
4234
4212
raise ValueError ("Empty value passed for parameter 'x'" )
4235
4213
if y in SKIP_IN_PATH :
4236
4214
raise ValueError ("Empty value passed for parameter 'y'" )
4237
- __path_parts : t .Dict [str , str ]
4238
- __path_parts = {
4215
+ __path_parts : t .Dict [str , str ] = {
4239
4216
"index" : _quote (index ),
4240
4217
"field" : _quote (field ),
4241
4218
"zoom" : _quote (zoom ),
@@ -4593,8 +4570,7 @@ async def terms_enum(
4593
4570
raise ValueError ("Empty value passed for parameter 'index'" )
4594
4571
if field is None and body is None :
4595
4572
raise ValueError ("Empty value passed for parameter 'field'" )
4596
- __path_parts : t .Dict [str , str ]
4597
- __path_parts = {"index" : _quote (index )}
4573
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index )}
4598
4574
__path = f'/{ __path_parts ["index" ]} /_terms_enum'
4599
4575
__query : t .Dict [str , t .Any ] = {}
4600
4576
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -4854,8 +4830,7 @@ async def update(
4854
4830
raise ValueError ("Empty value passed for parameter 'index'" )
4855
4831
if id in SKIP_IN_PATH :
4856
4832
raise ValueError ("Empty value passed for parameter 'id'" )
4857
- __path_parts : t .Dict [str , str ]
4858
- __path_parts = {"index" : _quote (index ), "id" : _quote (id )}
4833
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index ), "id" : _quote (id )}
4859
4834
__path = f'/{ __path_parts ["index" ]} /_update/{ __path_parts ["id" ]} '
4860
4835
__query : t .Dict [str , t .Any ] = {}
4861
4836
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -5054,8 +5029,7 @@ async def update_by_query(
5054
5029
"""
5055
5030
if index in SKIP_IN_PATH :
5056
5031
raise ValueError ("Empty value passed for parameter 'index'" )
5057
- __path_parts : t .Dict [str , str ]
5058
- __path_parts = {"index" : _quote (index )}
5032
+ __path_parts : t .Dict [str , str ] = {"index" : _quote (index )}
5059
5033
__path = f'/{ __path_parts ["index" ]} /_update_by_query'
5060
5034
__query : t .Dict [str , t .Any ] = {}
5061
5035
__body : t .Dict [str , t .Any ] = body if body is not None else {}
@@ -5182,8 +5156,7 @@ async def update_by_query_rethrottle(
5182
5156
"""
5183
5157
if task_id in SKIP_IN_PATH :
5184
5158
raise ValueError ("Empty value passed for parameter 'task_id'" )
5185
- __path_parts : t .Dict [str , str ]
5186
- __path_parts = {"task_id" : _quote (task_id )}
5159
+ __path_parts : t .Dict [str , str ] = {"task_id" : _quote (task_id )}
5187
5160
__path = f'/_update_by_query/{ __path_parts ["task_id" ]} /_rethrottle'
5188
5161
__query : t .Dict [str , t .Any ] = {}
5189
5162
if error_trace is not None :
0 commit comments