@@ -80,9 +80,12 @@ async def aliases(
80
80
a suffix to the column name.
81
81
:param v: When set to `true` will enable verbose output.
82
82
"""
83
+ __path_parts : t .Dict [str , str ]
83
84
if name not in SKIP_IN_PATH :
84
- __path = f"/_cat/aliases/{ _quote (name )} "
85
+ __path_parts = {"name" : _quote (name )}
86
+ __path = f'/_cat/aliases/{ __path_parts ["name" ]} '
85
87
else :
88
+ __path_parts = {}
86
89
__path = "/_cat/aliases"
87
90
__query : t .Dict [str , t .Any ] = {}
88
91
if error_trace is not None :
@@ -111,7 +114,12 @@ async def aliases(
111
114
__query ["v" ] = v
112
115
__headers = {"accept" : "text/plain,application/json" }
113
116
return await self .perform_request ( # type: ignore[return-value]
114
- "GET" , __path , params = __query , headers = __headers
117
+ "GET" ,
118
+ __path ,
119
+ params = __query ,
120
+ headers = __headers ,
121
+ endpoint_id = "cat.aliases" ,
122
+ path_parts = __path_parts ,
115
123
)
116
124
117
125
@_rewrite_parameters ()
@@ -159,9 +167,12 @@ async def component_templates(
159
167
a suffix to the column name.
160
168
:param v: When set to `true` will enable verbose output.
161
169
"""
170
+ __path_parts : t .Dict [str , str ]
162
171
if name not in SKIP_IN_PATH :
163
- __path = f"/_cat/component_templates/{ _quote (name )} "
172
+ __path_parts = {"name" : _quote (name )}
173
+ __path = f'/_cat/component_templates/{ __path_parts ["name" ]} '
164
174
else :
175
+ __path_parts = {}
165
176
__path = "/_cat/component_templates"
166
177
__query : t .Dict [str , t .Any ] = {}
167
178
if error_trace is not None :
@@ -188,7 +199,12 @@ async def component_templates(
188
199
__query ["v" ] = v
189
200
__headers = {"accept" : "text/plain,application/json" }
190
201
return await self .perform_request ( # type: ignore[return-value]
191
- "GET" , __path , params = __query , headers = __headers
202
+ "GET" ,
203
+ __path ,
204
+ params = __query ,
205
+ headers = __headers ,
206
+ endpoint_id = "cat.component_templates" ,
207
+ path_parts = __path_parts ,
192
208
)
193
209
194
210
@_rewrite_parameters ()
@@ -238,9 +254,12 @@ async def count(
238
254
a suffix to the column name.
239
255
:param v: When set to `true` will enable verbose output.
240
256
"""
257
+ __path_parts : t .Dict [str , str ]
241
258
if index not in SKIP_IN_PATH :
242
- __path = f"/_cat/count/{ _quote (index )} "
259
+ __path_parts = {"index" : _quote (index )}
260
+ __path = f'/_cat/count/{ __path_parts ["index" ]} '
243
261
else :
262
+ __path_parts = {}
244
263
__path = "/_cat/count"
245
264
__query : t .Dict [str , t .Any ] = {}
246
265
if error_trace is not None :
@@ -267,7 +286,12 @@ async def count(
267
286
__query ["v" ] = v
268
287
__headers = {"accept" : "text/plain,application/json" }
269
288
return await self .perform_request ( # type: ignore[return-value]
270
- "GET" , __path , params = __query , headers = __headers
289
+ "GET" ,
290
+ __path ,
291
+ params = __query ,
292
+ headers = __headers ,
293
+ endpoint_id = "cat.count" ,
294
+ path_parts = __path_parts ,
271
295
)
272
296
273
297
@_rewrite_parameters ()
@@ -308,6 +332,7 @@ async def help(
308
332
a suffix to the column name.
309
333
:param v: When set to `true` will enable verbose output.
310
334
"""
335
+ __path_parts : t .Dict [str , str ] = {}
311
336
__path = "/_cat"
312
337
__query : t .Dict [str , t .Any ] = {}
313
338
if error_trace is not None :
@@ -334,7 +359,12 @@ async def help(
334
359
__query ["v" ] = v
335
360
__headers = {"accept" : "text/plain" }
336
361
return await self .perform_request ( # type: ignore[return-value]
337
- "GET" , __path , params = __query , headers = __headers
362
+ "GET" ,
363
+ __path ,
364
+ params = __query ,
365
+ headers = __headers ,
366
+ endpoint_id = "cat.help" ,
367
+ path_parts = __path_parts ,
338
368
)
339
369
340
370
@_rewrite_parameters ()
@@ -413,9 +443,12 @@ async def indices(
413
443
:param time: The unit used to display time values.
414
444
:param v: When set to `true` will enable verbose output.
415
445
"""
446
+ __path_parts : t .Dict [str , str ]
416
447
if index not in SKIP_IN_PATH :
417
- __path = f"/_cat/indices/{ _quote (index )} "
448
+ __path_parts = {"index" : _quote (index )}
449
+ __path = f'/_cat/indices/{ __path_parts ["index" ]} '
418
450
else :
451
+ __path_parts = {}
419
452
__path = "/_cat/indices"
420
453
__query : t .Dict [str , t .Any ] = {}
421
454
if bytes is not None :
@@ -454,7 +487,12 @@ async def indices(
454
487
__query ["v" ] = v
455
488
__headers = {"accept" : "text/plain,application/json" }
456
489
return await self .perform_request ( # type: ignore[return-value]
457
- "GET" , __path , params = __query , headers = __headers
490
+ "GET" ,
491
+ __path ,
492
+ params = __query ,
493
+ headers = __headers ,
494
+ endpoint_id = "cat.indices" ,
495
+ path_parts = __path_parts ,
458
496
)
459
497
460
498
@_rewrite_parameters ()
@@ -534,9 +572,12 @@ async def ml_data_frame_analytics(
534
572
:param time: Unit used to display time values.
535
573
:param v: When set to `true` will enable verbose output.
536
574
"""
575
+ __path_parts : t .Dict [str , str ]
537
576
if id not in SKIP_IN_PATH :
538
- __path = f"/_cat/ml/data_frame/analytics/{ _quote (id )} "
577
+ __path_parts = {"id" : _quote (id )}
578
+ __path = f'/_cat/ml/data_frame/analytics/{ __path_parts ["id" ]} '
539
579
else :
580
+ __path_parts = {}
540
581
__path = "/_cat/ml/data_frame/analytics"
541
582
__query : t .Dict [str , t .Any ] = {}
542
583
if allow_no_match is not None :
@@ -569,7 +610,12 @@ async def ml_data_frame_analytics(
569
610
__query ["v" ] = v
570
611
__headers = {"accept" : "text/plain,application/json" }
571
612
return await self .perform_request ( # type: ignore[return-value]
572
- "GET" , __path , params = __query , headers = __headers
613
+ "GET" ,
614
+ __path ,
615
+ params = __query ,
616
+ headers = __headers ,
617
+ endpoint_id = "cat.ml_data_frame_analytics" ,
618
+ path_parts = __path_parts ,
573
619
)
574
620
575
621
@_rewrite_parameters ()
@@ -655,9 +701,12 @@ async def ml_datafeeds(
655
701
:param time: The unit used to display time values.
656
702
:param v: When set to `true` will enable verbose output.
657
703
"""
704
+ __path_parts : t .Dict [str , str ]
658
705
if datafeed_id not in SKIP_IN_PATH :
659
- __path = f"/_cat/ml/datafeeds/{ _quote (datafeed_id )} "
706
+ __path_parts = {"datafeed_id" : _quote (datafeed_id )}
707
+ __path = f'/_cat/ml/datafeeds/{ __path_parts ["datafeed_id" ]} '
660
708
else :
709
+ __path_parts = {}
661
710
__path = "/_cat/ml/datafeeds"
662
711
__query : t .Dict [str , t .Any ] = {}
663
712
if allow_no_match is not None :
@@ -688,7 +737,12 @@ async def ml_datafeeds(
688
737
__query ["v" ] = v
689
738
__headers = {"accept" : "text/plain,application/json" }
690
739
return await self .perform_request ( # type: ignore[return-value]
691
- "GET" , __path , params = __query , headers = __headers
740
+ "GET" ,
741
+ __path ,
742
+ params = __query ,
743
+ headers = __headers ,
744
+ endpoint_id = "cat.ml_datafeeds" ,
745
+ path_parts = __path_parts ,
692
746
)
693
747
694
748
@_rewrite_parameters ()
@@ -778,9 +832,12 @@ async def ml_jobs(
778
832
:param time: The unit used to display time values.
779
833
:param v: When set to `true` will enable verbose output.
780
834
"""
835
+ __path_parts : t .Dict [str , str ]
781
836
if job_id not in SKIP_IN_PATH :
782
- __path = f"/_cat/ml/anomaly_detectors/{ _quote (job_id )} "
837
+ __path_parts = {"job_id" : _quote (job_id )}
838
+ __path = f'/_cat/ml/anomaly_detectors/{ __path_parts ["job_id" ]} '
783
839
else :
840
+ __path_parts = {}
784
841
__path = "/_cat/ml/anomaly_detectors"
785
842
__query : t .Dict [str , t .Any ] = {}
786
843
if allow_no_match is not None :
@@ -813,7 +870,12 @@ async def ml_jobs(
813
870
__query ["v" ] = v
814
871
__headers = {"accept" : "text/plain,application/json" }
815
872
return await self .perform_request ( # type: ignore[return-value]
816
- "GET" , __path , params = __query , headers = __headers
873
+ "GET" ,
874
+ __path ,
875
+ params = __query ,
876
+ headers = __headers ,
877
+ endpoint_id = "cat.ml_jobs" ,
878
+ path_parts = __path_parts ,
817
879
)
818
880
819
881
@_rewrite_parameters (
@@ -902,9 +964,12 @@ async def ml_trained_models(
902
964
:param size: The maximum number of transforms to display.
903
965
:param v: When set to `true` will enable verbose output.
904
966
"""
967
+ __path_parts : t .Dict [str , str ]
905
968
if model_id not in SKIP_IN_PATH :
906
- __path = f"/_cat/ml/trained_models/{ _quote (model_id )} "
969
+ __path_parts = {"model_id" : _quote (model_id )}
970
+ __path = f'/_cat/ml/trained_models/{ __path_parts ["model_id" ]} '
907
971
else :
972
+ __path_parts = {}
908
973
__path = "/_cat/ml/trained_models"
909
974
__query : t .Dict [str , t .Any ] = {}
910
975
if allow_no_match is not None :
@@ -939,7 +1004,12 @@ async def ml_trained_models(
939
1004
__query ["v" ] = v
940
1005
__headers = {"accept" : "text/plain,application/json" }
941
1006
return await self .perform_request ( # type: ignore[return-value]
942
- "GET" , __path , params = __query , headers = __headers
1007
+ "GET" ,
1008
+ __path ,
1009
+ params = __query ,
1010
+ headers = __headers ,
1011
+ endpoint_id = "cat.ml_trained_models" ,
1012
+ path_parts = __path_parts ,
943
1013
)
944
1014
945
1015
@_rewrite_parameters (
@@ -1030,9 +1100,12 @@ async def transforms(
1030
1100
:param time: The unit used to display time values.
1031
1101
:param v: When set to `true` will enable verbose output.
1032
1102
"""
1103
+ __path_parts : t .Dict [str , str ]
1033
1104
if transform_id not in SKIP_IN_PATH :
1034
- __path = f"/_cat/transforms/{ _quote (transform_id )} "
1105
+ __path_parts = {"transform_id" : _quote (transform_id )}
1106
+ __path = f'/_cat/transforms/{ __path_parts ["transform_id" ]} '
1035
1107
else :
1108
+ __path_parts = {}
1036
1109
__path = "/_cat/transforms"
1037
1110
__query : t .Dict [str , t .Any ] = {}
1038
1111
if allow_no_match is not None :
@@ -1067,5 +1140,10 @@ async def transforms(
1067
1140
__query ["v" ] = v
1068
1141
__headers = {"accept" : "text/plain,application/json" }
1069
1142
return await self .perform_request ( # type: ignore[return-value]
1070
- "GET" , __path , params = __query , headers = __headers
1143
+ "GET" ,
1144
+ __path ,
1145
+ params = __query ,
1146
+ headers = __headers ,
1147
+ endpoint_id = "cat.transforms" ,
1148
+ path_parts = __path_parts ,
1071
1149
)
0 commit comments