File Coverage

blib/lib/Search/Elasticsearch/Client/7_0/Role/API.pm
Criterion Covered Total %
statement 10 11 90.9
branch n/a
condition 1 5 20.0
subroutine 4 4 100.0
pod 1 1 100.0
total 16 21 76.1


line stmt bran cond sub pod time code
1             # Licensed to Elasticsearch B.V. under one or more contributor
2             # license agreements. See the NOTICE file distributed with
3             # this work for additional information regarding copyright
4             # ownership. Elasticsearch B.V. licenses this file to you under
5             # the Apache License, Version 2.0 (the "License"); you may
6             # not use this file except in compliance with the License.
7             # You may obtain a copy of the License at
8             #
9             # http://www.apache.org/licenses/LICENSE-2.0
10             #
11             # Unless required by applicable law or agreed to in writing,
12             # software distributed under the License is distributed on an
13             # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14             # KIND, either express or implied. See the License for the
15             # specific language governing permissions and limitations
16             # under the License.
17              
18             package Search::Elasticsearch::Client::7_0::Role::API;
19             $Search::Elasticsearch::Client::7_0::Role::API::VERSION = '7.715';
20 55     55   68120 use Moo::Role;
  55         203  
  55         367  
21             with 'Search::Elasticsearch::Role::API';
22              
23 55     55   19860 use Search::Elasticsearch::Util qw(throw);
  55         145  
  55         428  
24 55     55   14757 use namespace::clean;
  55         657  
  55         363  
25              
26             has 'api_version' => ( is => 'ro', default => '7_0' );
27              
28             our %API;
29              
30             #===================================
31             sub api {
32             #===================================
33 55   50 55 1 326 my $name = $_[1] || return \%API;
34 0   0       return $API{$name}
35             || throw( 'Internal', "Unknown api name ($name)" );
36             }
37              
38             #===================================
39             %API = (
40             #===================================
41              
42             'bulk.metadata' => {
43             params => {
44             '_index' => '_index',
45             'index' => '_index',
46             '_id' => '_id',
47             'id' => '_id',
48             'pipeline' => 'pipeline',
49             'routing' => 'routing',
50             '_routing' => 'routing',
51             'parent' => 'parent',
52             '_parent' => 'parent',
53             'timestamp' => 'timestamp',
54             '_timestamp' => 'timestamp',
55             'ttl' => 'ttl',
56             '_ttl' => 'ttl',
57             'version' => 'version',
58             '_version' => 'version',
59             'version_type' => 'version_type',
60             '_version_type' => 'version_type',
61             'if_seq_no' => 'if_seq_no',
62             'if_primary_term' => 'if_primary_term',
63             'lang' => 'lang',
64             'require_alias' => 'require_alias',
65             'refresh' => 'refresh',
66             'retry_on_conflict' => 'retru_on_conflict',
67             'wait_for_active_shards' => 'wait_for_active_shards',
68             '_source' => '_source',
69             '_source_excludes' => '_source_excludes',
70             '_source_includes' => '_source_includes',
71             'timeout' => 'timeout'
72             }
73             },
74             'bulk.update' => {
75             params => [
76             '_source', '_source_includes',
77             '_source_excludes', 'detect_noop',
78             'doc', 'doc_as_upsert',
79             'fields', 'retry_on_conflict',
80             'scripted_upsert', 'script',
81             'upsert', 'lang',
82             'params'
83             ]
84             },
85             'bulk.required' => { params => ['index'] },
86              
87             #=== AUTOGEN - START ===
88              
89             'bulk' => {
90             body => { required => 1 },
91             doc => "docs-bulk",
92             method => "POST",
93             parts => { index => {}, type => {} },
94             paths => [
95             [ { index => 0, type => 1 }, "{index}", "{type}", "_bulk" ],
96             [ { index => 0 }, "{index}", "_bulk" ],
97             [ {}, "_bulk" ],
98             ],
99             qs => {
100             _source => "list",
101             _source_excludes => "list",
102             _source_includes => "list",
103             error_trace => "boolean",
104             filter_path => "list",
105             human => "boolean",
106             pipeline => "string",
107             refresh => "enum",
108             require_alias => "boolean",
109             routing => "string",
110             timeout => "time",
111             wait_for_active_shards => "string",
112             },
113             serialize => "bulk",
114             },
115              
116             'clear_scroll' => {
117             body => {},
118             doc => "clear-scroll-api",
119             method => "DELETE",
120             parts => { scroll_id => { multi => 1 } },
121             paths => [
122             [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ],
123             [ {}, "_search", "scroll" ],
124             ],
125             qs => {
126             error_trace => "boolean",
127             filter_path => "list",
128             human => "boolean"
129             },
130             },
131              
132             'close_point_in_time' => {
133             body => {},
134             doc => "point-in-time-api",
135             method => "DELETE",
136             parts => {},
137             paths => [ [ {}, "_pit" ] ],
138             qs => {
139             error_trace => "boolean",
140             filter_path => "list",
141             human => "boolean"
142             },
143             },
144              
145             'count' => {
146             body => {},
147             doc => "search-count",
148             method => "POST",
149             parts => { index => { multi => 1 }, type => { multi => 1 } },
150             paths => [
151             [ { index => 0, type => 1 }, "{index}", "{type}", "_count" ],
152             [ { index => 0 }, "{index}", "_count" ],
153             [ {}, "_count" ],
154             ],
155             qs => {
156             allow_no_indices => "boolean",
157             analyze_wildcard => "boolean",
158             analyzer => "string",
159             default_operator => "enum",
160             df => "string",
161             error_trace => "boolean",
162             expand_wildcards => "enum",
163             filter_path => "list",
164             human => "boolean",
165             ignore_throttled => "boolean",
166             ignore_unavailable => "boolean",
167             lenient => "boolean",
168             min_score => "number",
169             preference => "string",
170             q => "string",
171             routing => "list",
172             terminate_after => "number",
173             },
174             },
175              
176             'create' => {
177             body => { required => 1 },
178             doc => "docs-index_",
179             method => "PUT",
180             parts => { id => {}, index => {}, type => {} },
181             paths => [
182             [ { id => 2, index => 0, type => 1 },
183             "{index}", "{type}", "{id}", "_create",
184             ],
185             [ { id => 2, index => 0 }, "{index}", "_create", "{id}" ],
186             ],
187             qs => {
188             error_trace => "boolean",
189             filter_path => "list",
190             human => "boolean",
191             pipeline => "string",
192             refresh => "enum",
193             routing => "string",
194             timeout => "time",
195             version => "number",
196             version_type => "enum",
197             wait_for_active_shards => "string",
198             },
199             },
200              
201             'delete' => {
202             doc => "docs-delete",
203             method => "DELETE",
204             parts => { id => {}, index => {}, type => {} },
205             paths => [
206             [ { id => 2, index => 0, type => 1 }, "{index}",
207             "{type}", "{id}"
208             ],
209             [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ],
210             ],
211             qs => {
212             error_trace => "boolean",
213             filter_path => "list",
214             human => "boolean",
215             if_primary_term => "number",
216             if_seq_no => "number",
217             refresh => "enum",
218             routing => "string",
219             timeout => "time",
220             version => "number",
221             version_type => "enum",
222             wait_for_active_shards => "string",
223             },
224             },
225              
226             'delete_by_query' => {
227             body => { required => 1 },
228             doc => "docs-delete-by-query",
229             method => "POST",
230             parts => {
231             index => { multi => 1, required => 1 },
232             type => { multi => 1 }
233             },
234             paths => [
235             [ { index => 0, type => 1 }, "{index}",
236             "{type}", "_delete_by_query",
237             ],
238             [ { index => 0 }, "{index}", "_delete_by_query" ],
239             ],
240             qs => {
241             _source => "list",
242             _source_excludes => "list",
243             _source_includes => "list",
244             allow_no_indices => "boolean",
245             analyze_wildcard => "boolean",
246             analyzer => "string",
247             conflicts => "enum",
248             default_operator => "enum",
249             df => "string",
250             error_trace => "boolean",
251             expand_wildcards => "enum",
252             filter_path => "list",
253             from => "number",
254             human => "boolean",
255             ignore_unavailable => "boolean",
256             lenient => "boolean",
257             max_docs => "number",
258             preference => "string",
259             q => "string",
260             refresh => "boolean",
261             request_cache => "boolean",
262             requests_per_second => "number",
263             routing => "list",
264             scroll => "time",
265             scroll_size => "number",
266             search_timeout => "time",
267             search_type => "enum",
268             size => "number",
269             slices => "number|string",
270             sort => "list",
271             stats => "list",
272             terminate_after => "number",
273             timeout => "time",
274             version => "boolean",
275             wait_for_active_shards => "string",
276             wait_for_completion => "boolean",
277             },
278             },
279              
280             'delete_by_query_rethrottle' => {
281             doc => "docs-delete-by-query",
282             method => "POST",
283             parts => { task_id => {} },
284             paths => [
285             [ { task_id => 1 }, "_delete_by_query",
286             "{task_id}", "_rethrottle",
287             ],
288             ],
289             qs => {
290             error_trace => "boolean",
291             filter_path => "list",
292             human => "boolean",
293             requests_per_second => "number",
294             },
295             },
296              
297             'delete_script' => {
298             doc => "modules-scripting",
299             method => "DELETE",
300             parts => { id => {} },
301             paths => [ [ { id => 1 }, "_scripts", "{id}" ] ],
302             qs => {
303             error_trace => "boolean",
304             filter_path => "list",
305             human => "boolean",
306             master_timeout => "time",
307             timeout => "time",
308             },
309             },
310              
311             'exists' => {
312             doc => "docs-get",
313             method => "HEAD",
314             parts => { id => {}, index => {}, type => {} },
315             paths => [
316             [ { id => 2, index => 0, type => 1 }, "{index}",
317             "{type}", "{id}"
318             ],
319             [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ],
320             ],
321             qs => {
322             _source => "list",
323             _source_excludes => "list",
324             _source_includes => "list",
325             error_trace => "boolean",
326             filter_path => "list",
327             human => "boolean",
328             preference => "string",
329             realtime => "boolean",
330             refresh => "boolean",
331             routing => "string",
332             stored_fields => "list",
333             version => "number",
334             version_type => "enum",
335             },
336             },
337              
338             'exists_source' => {
339             doc => "docs-get",
340             method => "HEAD",
341             parts => { id => {}, index => {}, type => {} },
342             paths => [
343             [ { id => 2, index => 0, type => 1 },
344             "{index}", "{type}", "{id}", "_source",
345             ],
346             [ { id => 2, index => 0 }, "{index}", "_source", "{id}" ],
347             ],
348             qs => {
349             _source => "list",
350             _source_excludes => "list",
351             _source_includes => "list",
352             error_trace => "boolean",
353             filter_path => "list",
354             human => "boolean",
355             preference => "string",
356             realtime => "boolean",
357             refresh => "boolean",
358             routing => "string",
359             version => "number",
360             version_type => "enum",
361             },
362             },
363              
364             'explain' => {
365             body => {},
366             doc => "search-explain",
367             parts => { id => {}, index => {}, type => {} },
368             paths => [
369             [ { id => 2, index => 0, type => 1 }, "{index}",
370             "{type}", "{id}",
371             "_explain",
372             ],
373             [ { id => 2, index => 0 }, "{index}", "_explain", "{id}" ],
374             ],
375             qs => {
376             _source => "list",
377             _source_excludes => "list",
378             _source_includes => "list",
379             analyze_wildcard => "boolean",
380             analyzer => "string",
381             default_operator => "enum",
382             df => "string",
383             error_trace => "boolean",
384             filter_path => "list",
385             human => "boolean",
386             lenient => "boolean",
387             preference => "string",
388             q => "string",
389             routing => "string",
390             stored_fields => "list",
391             },
392             },
393              
394             'field_caps' => {
395             body => {},
396             doc => "search-field-caps",
397             parts => { index => { multi => 1 } },
398             paths => [
399             [ { index => 0 }, "{index}", "_field_caps" ],
400             [ {}, "_field_caps" ],
401             ],
402             qs => {
403             allow_no_indices => "boolean",
404             error_trace => "boolean",
405             expand_wildcards => "enum",
406             fields => "list",
407             filter_path => "list",
408             human => "boolean",
409             ignore_unavailable => "boolean",
410             include_unmapped => "boolean",
411             },
412             },
413              
414             'get' => {
415             doc => "docs-get",
416             parts => { id => {}, index => {}, type => {} },
417             paths => [
418             [ { id => 2, index => 0, type => 1 }, "{index}",
419             "{type}", "{id}"
420             ],
421             [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ],
422             ],
423             qs => {
424             _source => "list",
425             _source_excludes => "list",
426             _source_includes => "list",
427             error_trace => "boolean",
428             filter_path => "list",
429             human => "boolean",
430             preference => "string",
431             realtime => "boolean",
432             refresh => "boolean",
433             routing => "string",
434             stored_fields => "list",
435             version => "number",
436             version_type => "enum",
437             },
438             },
439              
440             'get_script' => {
441             doc => "modules-scripting",
442             parts => { id => {} },
443             paths => [ [ { id => 1 }, "_scripts", "{id}" ] ],
444             qs => {
445             error_trace => "boolean",
446             filter_path => "list",
447             human => "boolean",
448             master_timeout => "time",
449             },
450             },
451              
452             'get_script_context' => {
453             doc => "painless-contexts",
454             parts => {},
455             paths => [ [ {}, "_script_context" ] ],
456             qs => {
457             error_trace => "boolean",
458             filter_path => "list",
459             human => "boolean"
460             },
461             },
462              
463             'get_script_languages' => {
464             doc => "modules-scripting",
465             parts => {},
466             paths => [ [ {}, "_script_language" ] ],
467             qs => {
468             error_trace => "boolean",
469             filter_path => "list",
470             human => "boolean"
471             },
472             },
473              
474             'get_source' => {
475             doc => "docs-get",
476             parts => { id => {}, index => {}, type => {} },
477             paths => [
478             [ { id => 2, index => 0, type => 1 },
479             "{index}", "{type}", "{id}", "_source",
480             ],
481             [ { id => 2, index => 0 }, "{index}", "_source", "{id}" ],
482             ],
483             qs => {
484             _source => "list",
485             _source_excludes => "list",
486             _source_includes => "list",
487             error_trace => "boolean",
488             filter_path => "list",
489             human => "boolean",
490             preference => "string",
491             realtime => "boolean",
492             refresh => "boolean",
493             routing => "string",
494             version => "number",
495             version_type => "enum",
496             },
497             },
498              
499             'index' => {
500             body => { required => 1 },
501             doc => "docs-index_",
502             method => "POST",
503             parts => { id => {}, index => {}, type => {} },
504             paths => [
505             [ { id => 2, index => 0, type => 1 }, "{index}",
506             "{type}", "{id}"
507             ],
508             [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ],
509             [ { index => 0, type => 1 }, "{index}", "{type}" ],
510             [ { index => 0 }, "{index}", "_doc" ],
511             ],
512             qs => {
513             error_trace => "boolean",
514             filter_path => "list",
515             human => "boolean",
516             if_primary_term => "number",
517             if_seq_no => "number",
518             op_type => "enum",
519             pipeline => "string",
520             refresh => "enum",
521             require_alias => "boolean",
522             routing => "string",
523             timeout => "time",
524             version => "number",
525             version_type => "enum",
526             wait_for_active_shards => "string",
527             },
528             },
529              
530             'info' => {
531             doc => "index",
532             parts => {},
533             paths => [ [ {} ] ],
534             qs => {
535             error_trace => "boolean",
536             filter_path => "list",
537             human => "boolean"
538             },
539             },
540              
541             'mget' => {
542             body => { required => 1 },
543             doc => "docs-multi-get",
544             parts => { index => {}, type => {} },
545             paths => [
546             [ { index => 0, type => 1 }, "{index}", "{type}", "_mget" ],
547             [ { index => 0 }, "{index}", "_mget" ],
548             [ {}, "_mget" ],
549             ],
550             qs => {
551             _source => "list",
552             _source_excludes => "list",
553             _source_includes => "list",
554             error_trace => "boolean",
555             filter_path => "list",
556             human => "boolean",
557             preference => "string",
558             realtime => "boolean",
559             refresh => "boolean",
560             routing => "string",
561             stored_fields => "list",
562             },
563             },
564              
565             'msearch' => {
566             body => { required => 1 },
567             doc => "search-multi-search",
568             parts => { index => { multi => 1 }, type => { multi => 1 } },
569             paths => [
570             [ { index => 0, type => 1 }, "{index}", "{type}", "_msearch" ],
571             [ { index => 0 }, "{index}", "_msearch" ],
572             [ {}, "_msearch" ],
573             ],
574             qs => {
575             ccs_minimize_roundtrips => "boolean",
576             error_trace => "boolean",
577             filter_path => "list",
578             human => "boolean",
579             max_concurrent_searches => "number",
580             max_concurrent_shard_requests => "number",
581             pre_filter_shard_size => "number",
582             rest_total_hits_as_int => "boolean",
583             search_type => "enum",
584             typed_keys => "boolean",
585             },
586             serialize => "bulk",
587             },
588              
589             'msearch_template' => {
590             body => { required => 1 },
591             doc => "search-multi-search",
592             parts => { index => { multi => 1 }, type => { multi => 1 } },
593             paths => [
594             [ { index => 0, type => 1 }, "{index}",
595             "{type}", "_msearch",
596             "template",
597             ],
598             [ { index => 0 }, "{index}", "_msearch", "template" ],
599             [ {}, "_msearch", "template" ],
600             ],
601             qs => {
602             ccs_minimize_roundtrips => "boolean",
603             error_trace => "boolean",
604             filter_path => "list",
605             human => "boolean",
606             max_concurrent_searches => "number",
607             rest_total_hits_as_int => "boolean",
608             search_type => "enum",
609             typed_keys => "boolean",
610             },
611             serialize => "bulk",
612             },
613              
614             'mtermvectors' => {
615             body => {},
616             doc => "docs-multi-termvectors",
617             parts => { index => {}, type => {} },
618             paths => [
619             [ { index => 0, type => 1 }, "{index}",
620             "{type}", "_mtermvectors"
621             ],
622             [ { index => 0 }, "{index}", "_mtermvectors" ],
623             [ {}, "_mtermvectors" ],
624             ],
625             qs => {
626             error_trace => "boolean",
627             field_statistics => "boolean",
628             fields => "list",
629             filter_path => "list",
630             human => "boolean",
631             ids => "list",
632             offsets => "boolean",
633             payloads => "boolean",
634             positions => "boolean",
635             preference => "string",
636             realtime => "boolean",
637             routing => "string",
638             term_statistics => "boolean",
639             version => "number",
640             version_type => "enum",
641             },
642             },
643              
644             'open_point_in_time' => {
645             doc => "point-in-time-api",
646             method => "POST",
647             parts => { index => { multi => 1 } },
648             paths => [ [ { index => 0 }, "{index}", "_pit" ] ],
649             qs => {
650             error_trace => "boolean",
651             expand_wildcards => "enum",
652             filter_path => "list",
653             human => "boolean",
654             ignore_unavailable => "boolean",
655             keep_alive => "string",
656             preference => "string",
657             routing => "string",
658             },
659             },
660              
661             'ping' => {
662             doc => "index",
663             method => "HEAD",
664             parts => {},
665             paths => [ [ {} ] ],
666             qs => {
667             error_trace => "boolean",
668             filter_path => "list",
669             human => "boolean"
670             },
671             },
672              
673             'put_script' => {
674             body => { required => 1 },
675             doc => "modules-scripting",
676             method => "PUT",
677             parts => { context => {}, id => {} },
678             paths => [
679             [ { context => 2, id => 1 }, "_scripts", "{id}", "{context}" ],
680             [ { id => 1 }, "_scripts", "{id}" ],
681             ],
682             qs => {
683             error_trace => "boolean",
684             filter_path => "list",
685             human => "boolean",
686             master_timeout => "time",
687             timeout => "time",
688             },
689             },
690              
691             'rank_eval' => {
692             body => { required => 1 },
693             doc => "search-rank-eval",
694             parts => { index => { multi => 1 } },
695             paths => [
696             [ { index => 0 }, "{index}", "_rank_eval" ],
697             [ {}, "_rank_eval" ]
698             ],
699             qs => {
700             allow_no_indices => "boolean",
701             error_trace => "boolean",
702             expand_wildcards => "enum",
703             filter_path => "list",
704             human => "boolean",
705             ignore_unavailable => "boolean",
706             search_type => "enum",
707             },
708             },
709              
710             'reindex' => {
711             body => { required => 1 },
712             doc => "docs-reindex",
713             method => "POST",
714             parts => {},
715             paths => [ [ {}, "_reindex" ] ],
716             qs => {
717             error_trace => "boolean",
718             filter_path => "list",
719             human => "boolean",
720             max_docs => "number",
721             refresh => "boolean",
722             requests_per_second => "number",
723             scroll => "time",
724             slices => "number|string",
725             timeout => "time",
726             wait_for_active_shards => "string",
727             wait_for_completion => "boolean",
728             },
729             },
730              
731             'reindex_rethrottle' => {
732             doc => "docs-reindex",
733             method => "POST",
734             parts => { task_id => {} },
735             paths =>
736             [ [ { task_id => 1 }, "_reindex", "{task_id}", "_rethrottle" ] ],
737             qs => {
738             error_trace => "boolean",
739             filter_path => "list",
740             human => "boolean",
741             requests_per_second => "number",
742             },
743             },
744              
745             'render_search_template' => {
746             body => {},
747             doc => "render-search-template-api",
748             parts => { id => {} },
749             paths => [
750             [ { id => 2 }, "_render", "template", "{id}" ],
751             [ {}, "_render", "template" ],
752             ],
753             qs => {
754             error_trace => "boolean",
755             filter_path => "list",
756             human => "boolean"
757             },
758             },
759              
760             'scripts_painless_execute' => {
761             body => {},
762             doc => "painless-execute-api",
763             parts => {},
764             paths => [ [ {}, "_scripts", "painless", "_execute" ] ],
765             qs => {
766             error_trace => "boolean",
767             filter_path => "list",
768             human => "boolean"
769             },
770             },
771              
772             'scroll' => {
773             body => {},
774             doc => "",
775             parts => { scroll_id => {} },
776             paths => [
777             [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ],
778             [ {}, "_search", "scroll" ],
779             ],
780             qs => {
781             error_trace => "boolean",
782             filter_path => "list",
783             human => "boolean",
784             rest_total_hits_as_int => "boolean",
785             scroll => "time",
786             },
787             },
788              
789             'search' => {
790             body => {},
791             doc => "search-search",
792             parts => { index => { multi => 1 }, type => { multi => 1 } },
793             paths => [
794             [ { index => 0, type => 1 }, "{index}", "{type}", "_search" ],
795             [ { index => 0 }, "{index}", "_search" ],
796             [ {}, "_search" ],
797             ],
798             qs => {
799             _source => "list",
800             _source_excludes => "list",
801             _source_includes => "list",
802             allow_no_indices => "boolean",
803             allow_partial_search_results => "boolean",
804             analyze_wildcard => "boolean",
805             analyzer => "string",
806             batched_reduce_size => "number",
807             ccs_minimize_roundtrips => "boolean",
808             default_operator => "enum",
809             df => "string",
810             docvalue_fields => "list",
811             error_trace => "boolean",
812             expand_wildcards => "enum",
813             explain => "boolean",
814             filter_path => "list",
815             from => "number",
816             human => "boolean",
817             ignore_throttled => "boolean",
818             ignore_unavailable => "boolean",
819             lenient => "boolean",
820             max_concurrent_shard_requests => "number",
821             min_compatible_shard_node => "string",
822             pre_filter_shard_size => "number",
823             preference => "string",
824             q => "string",
825             request_cache => "boolean",
826             rest_total_hits_as_int => "boolean",
827             routing => "list",
828             scroll => "time",
829             search_type => "enum",
830             seq_no_primary_term => "boolean",
831             size => "number",
832             sort => "list",
833             stats => "list",
834             stored_fields => "list",
835             suggest_field => "string",
836             suggest_mode => "enum",
837             suggest_size => "number",
838             suggest_text => "string",
839             terminate_after => "number",
840             timeout => "time",
841             track_scores => "boolean",
842             track_total_hits => "boolean",
843             typed_keys => "boolean",
844             version => "boolean",
845             },
846             },
847              
848             'search_mvt' => {
849             body => {},
850             doc => "search-vector-tile-api",
851             method => "POST",
852             parts => {
853             field => {},
854             index => { multi => 1 },
855             x => {},
856             y => {},
857             zoom => {}
858             },
859             paths => [
860             [ { field => 2, index => 0, x => 4, y => 5, zoom => 3 },
861             "{index}", "_mvt", "{field}", "{zoom}", "{x}", "{y}",
862             ],
863             ],
864             qs => {
865             error_trace => "boolean",
866             exact_bounds => "boolean",
867             extent => "int",
868             filter_path => "list",
869             grid_precision => "int",
870             grid_type => "enum",
871             human => "boolean",
872             size => "int",
873             },
874             },
875              
876             'search_shards' => {
877             doc => "search-shards",
878             parts => { index => { multi => 1 } },
879             paths => [
880             [ { index => 0 }, "{index}", "_search_shards" ],
881             [ {}, "_search_shards" ],
882             ],
883             qs => {
884             allow_no_indices => "boolean",
885             error_trace => "boolean",
886             expand_wildcards => "enum",
887             filter_path => "list",
888             human => "boolean",
889             ignore_unavailable => "boolean",
890             local => "boolean",
891             preference => "string",
892             routing => "string",
893             },
894             },
895              
896             'search_template' => {
897             body => { required => 1 },
898             doc => "search-template",
899             parts => { index => { multi => 1 }, type => { multi => 1 } },
900             paths => [
901             [ { index => 0, type => 1 }, "{index}",
902             "{type}", "_search",
903             "template",
904             ],
905             [ { index => 0 }, "{index}", "_search", "template" ],
906             [ {}, "_search", "template" ],
907             ],
908             qs => {
909             allow_no_indices => "boolean",
910             ccs_minimize_roundtrips => "boolean",
911             error_trace => "boolean",
912             expand_wildcards => "enum",
913             explain => "boolean",
914             filter_path => "list",
915             human => "boolean",
916             ignore_throttled => "boolean",
917             ignore_unavailable => "boolean",
918             preference => "string",
919             profile => "boolean",
920             rest_total_hits_as_int => "boolean",
921             routing => "list",
922             scroll => "time",
923             search_type => "enum",
924             typed_keys => "boolean",
925             },
926             },
927              
928             'terms_enum' => {
929             body => {},
930             doc => "search-terms-enum",
931             parts => { index => { multi => 1 } },
932             paths => [ [ { index => 0 }, "{index}", "_terms_enum" ] ],
933             qs => {
934             error_trace => "boolean",
935             filter_path => "list",
936             human => "boolean"
937             },
938             },
939              
940             'termvectors' => {
941             body => {},
942             doc => "docs-termvectors",
943             parts => { id => {}, index => { required => 1 }, type => {} },
944             paths => [
945             [ { id => 2, index => 0, type => 1 }, "{index}",
946             "{type}", "{id}",
947             "_termvectors",
948             ],
949             [ { id => 2, index => 0 }, "{index}", "_termvectors", "{id}" ],
950             [ { index => 0, type => 1 }, "{index}", "{type}",
951             "_termvectors"
952             ],
953             [ { index => 0 }, "{index}", "_termvectors" ],
954             ],
955             qs => {
956             error_trace => "boolean",
957             field_statistics => "boolean",
958             fields => "list",
959             filter_path => "list",
960             human => "boolean",
961             offsets => "boolean",
962             payloads => "boolean",
963             positions => "boolean",
964             preference => "string",
965             realtime => "boolean",
966             routing => "string",
967             term_statistics => "boolean",
968             version => "number",
969             version_type => "enum",
970             },
971             },
972              
973             'update' => {
974             body => { required => 1 },
975             doc => "docs-update",
976             method => "POST",
977             parts => { id => {}, index => {}, type => {} },
978             paths => [
979             [ { id => 2, index => 0, type => 1 },
980             "{index}", "{type}", "{id}", "_update",
981             ],
982             [ { id => 2, index => 0 }, "{index}", "_update", "{id}" ],
983             ],
984             qs => {
985             _source => "list",
986             _source_excludes => "list",
987             _source_includes => "list",
988             error_trace => "boolean",
989             filter_path => "list",
990             human => "boolean",
991             if_primary_term => "number",
992             if_seq_no => "number",
993             lang => "string",
994             refresh => "enum",
995             require_alias => "boolean",
996             retry_on_conflict => "number",
997             routing => "string",
998             timeout => "time",
999             wait_for_active_shards => "string",
1000             },
1001             },
1002              
1003             'update_by_query' => {
1004             body => {},
1005             doc => "docs-update-by-query",
1006             method => "POST",
1007             parts => {
1008             index => { multi => 1, required => 1 },
1009             type => { multi => 1 }
1010             },
1011             paths => [
1012             [ { index => 0, type => 1 }, "{index}",
1013             "{type}", "_update_by_query",
1014             ],
1015             [ { index => 0 }, "{index}", "_update_by_query" ],
1016             ],
1017             qs => {
1018             _source => "list",
1019             _source_excludes => "list",
1020             _source_includes => "list",
1021             allow_no_indices => "boolean",
1022             analyze_wildcard => "boolean",
1023             analyzer => "string",
1024             conflicts => "enum",
1025             default_operator => "enum",
1026             df => "string",
1027             error_trace => "boolean",
1028             expand_wildcards => "enum",
1029             filter_path => "list",
1030             from => "number",
1031             human => "boolean",
1032             ignore_unavailable => "boolean",
1033             lenient => "boolean",
1034             max_docs => "number",
1035             pipeline => "string",
1036             preference => "string",
1037             q => "string",
1038             refresh => "boolean",
1039             request_cache => "boolean",
1040             requests_per_second => "number",
1041             routing => "list",
1042             scroll => "time",
1043             scroll_size => "number",
1044             search_timeout => "time",
1045             search_type => "enum",
1046             size => "number",
1047             slices => "number|string",
1048             sort => "list",
1049             stats => "list",
1050             terminate_after => "number",
1051             timeout => "time",
1052             version => "boolean",
1053             version_type => "boolean",
1054             wait_for_active_shards => "string",
1055             wait_for_completion => "boolean",
1056             },
1057             },
1058              
1059             'update_by_query_rethrottle' => {
1060             doc => "docs-update-by-query",
1061             method => "POST",
1062             parts => { task_id => {} },
1063             paths => [
1064             [ { task_id => 1 }, "_update_by_query",
1065             "{task_id}", "_rethrottle",
1066             ],
1067             ],
1068             qs => {
1069             error_trace => "boolean",
1070             filter_path => "list",
1071             human => "boolean",
1072             requests_per_second => "number",
1073             },
1074             },
1075              
1076             'async_search.delete' => {
1077             doc => "async-search",
1078             method => "DELETE",
1079             parts => { id => {} },
1080             paths => [ [ { id => 1 }, "_async_search", "{id}" ] ],
1081             qs => {
1082             error_trace => "boolean",
1083             filter_path => "list",
1084             human => "boolean"
1085             },
1086             },
1087              
1088             'async_search.get' => {
1089             doc => "async-search",
1090             parts => { id => {} },
1091             paths => [ [ { id => 1 }, "_async_search", "{id}" ] ],
1092             qs => {
1093             error_trace => "boolean",
1094             filter_path => "list",
1095             human => "boolean",
1096             keep_alive => "time",
1097             typed_keys => "boolean",
1098             wait_for_completion_timeout => "time",
1099             },
1100             },
1101              
1102             'async_search.status' => {
1103             doc => "async-search",
1104             parts => { id => {} },
1105             paths => [ [ { id => 2 }, "_async_search", "status", "{id}" ] ],
1106             qs => {
1107             error_trace => "boolean",
1108             filter_path => "list",
1109             human => "boolean"
1110             },
1111             },
1112              
1113             'async_search.submit' => {
1114             body => {},
1115             doc => "async-search",
1116             method => "POST",
1117             parts => { index => { multi => 1 } },
1118             paths => [
1119             [ { index => 0 }, "{index}", "_async_search" ],
1120             [ {}, "_async_search" ],
1121             ],
1122             qs => {
1123             _source => "list",
1124             _source_excludes => "list",
1125             _source_includes => "list",
1126             allow_no_indices => "boolean",
1127             allow_partial_search_results => "boolean",
1128             analyze_wildcard => "boolean",
1129             analyzer => "string",
1130             batched_reduce_size => "number",
1131             default_operator => "enum",
1132             df => "string",
1133             docvalue_fields => "list",
1134             error_trace => "boolean",
1135             expand_wildcards => "enum",
1136             explain => "boolean",
1137             filter_path => "list",
1138             from => "number",
1139             human => "boolean",
1140             ignore_throttled => "boolean",
1141             ignore_unavailable => "boolean",
1142             keep_alive => "time",
1143             keep_on_completion => "boolean",
1144             lenient => "boolean",
1145             max_concurrent_shard_requests => "number",
1146             preference => "string",
1147             q => "string",
1148             request_cache => "boolean",
1149             routing => "list",
1150             search_type => "enum",
1151             seq_no_primary_term => "boolean",
1152             size => "number",
1153             sort => "list",
1154             stats => "list",
1155             stored_fields => "list",
1156             suggest_field => "string",
1157             suggest_mode => "enum",
1158             suggest_size => "number",
1159             suggest_text => "string",
1160             terminate_after => "number",
1161             timeout => "time",
1162             track_scores => "boolean",
1163             track_total_hits => "boolean",
1164             typed_keys => "boolean",
1165             version => "boolean",
1166             wait_for_completion_timeout => "time",
1167             },
1168             },
1169              
1170             'autoscaling.delete_autoscaling_policy' => {
1171             doc => "autoscaling-delete-autoscaling-policy",
1172             method => "DELETE",
1173             parts => { name => {} },
1174             paths => [ [ { name => 2 }, "_autoscaling", "policy", "{name}" ] ],
1175             qs => {
1176             error_trace => "boolean",
1177             filter_path => "list",
1178             human => "boolean"
1179             },
1180             },
1181              
1182             'autoscaling.get_autoscaling_capacity' => {
1183             doc => "autoscaling-get-autoscaling-capacity",
1184             parts => {},
1185             paths => [ [ {}, "_autoscaling", "capacity" ] ],
1186             qs => {
1187             error_trace => "boolean",
1188             filter_path => "list",
1189             human => "boolean"
1190             },
1191             },
1192              
1193             'autoscaling.get_autoscaling_policy' => {
1194             doc => "autoscaling-get-autoscaling-policy",
1195             parts => { name => {} },
1196             paths => [ [ { name => 2 }, "_autoscaling", "policy", "{name}" ] ],
1197             qs => {
1198             error_trace => "boolean",
1199             filter_path => "list",
1200             human => "boolean"
1201             },
1202             },
1203              
1204             'autoscaling.put_autoscaling_policy' => {
1205             body => { required => 1 },
1206             doc => "autoscaling-put-autoscaling-policy",
1207             method => "PUT",
1208             parts => { name => {} },
1209             paths => [ [ { name => 2 }, "_autoscaling", "policy", "{name}" ] ],
1210             qs => {
1211             error_trace => "boolean",
1212             filter_path => "list",
1213             human => "boolean"
1214             },
1215             },
1216              
1217             'cat.aliases' => {
1218             doc => "cat-alias",
1219             parts => { name => { multi => 1 } },
1220             paths => [
1221             [ { name => 2 }, "_cat", "aliases", "{name}" ],
1222             [ {}, "_cat", "aliases" ],
1223             ],
1224             qs => {
1225             error_trace => "boolean",
1226             expand_wildcards => "enum",
1227             filter_path => "list",
1228             format => "string",
1229             h => "list",
1230             help => "boolean",
1231             human => "boolean",
1232             local => "boolean",
1233             s => "list",
1234             v => "boolean",
1235             },
1236             },
1237              
1238             'cat.allocation' => {
1239             doc => "cat-allocation",
1240             parts => { node_id => { multi => 1 } },
1241             paths => [
1242             [ { node_id => 2 }, "_cat", "allocation", "{node_id}" ],
1243             [ {}, "_cat", "allocation" ],
1244             ],
1245             qs => {
1246             bytes => "enum",
1247             error_trace => "boolean",
1248             filter_path => "list",
1249             format => "string",
1250             h => "list",
1251             help => "boolean",
1252             human => "boolean",
1253             local => "boolean",
1254             master_timeout => "time",
1255             s => "list",
1256             v => "boolean",
1257             },
1258             },
1259              
1260             'cat.count' => {
1261             doc => "cat-count",
1262             parts => { index => { multi => 1 } },
1263             paths => [
1264             [ { index => 2 }, "_cat", "count", "{index}" ],
1265             [ {}, "_cat", "count" ],
1266             ],
1267             qs => {
1268             error_trace => "boolean",
1269             filter_path => "list",
1270             format => "string",
1271             h => "list",
1272             help => "boolean",
1273             human => "boolean",
1274             s => "list",
1275             v => "boolean",
1276             },
1277             },
1278              
1279             'cat.fielddata' => {
1280             doc => "cat-fielddata",
1281             parts => { fields => { multi => 1 } },
1282             paths => [
1283             [ { fields => 2 }, "_cat", "fielddata", "{fields}" ],
1284             [ {}, "_cat", "fielddata" ],
1285             ],
1286             qs => {
1287             bytes => "enum",
1288             error_trace => "boolean",
1289             filter_path => "list",
1290             format => "string",
1291             h => "list",
1292             help => "boolean",
1293             human => "boolean",
1294             s => "list",
1295             v => "boolean",
1296             },
1297             },
1298              
1299             'cat.health' => {
1300             doc => "cat-health",
1301             parts => {},
1302             paths => [ [ {}, "_cat", "health" ] ],
1303             qs => {
1304             error_trace => "boolean",
1305             filter_path => "list",
1306             format => "string",
1307             h => "list",
1308             help => "boolean",
1309             human => "boolean",
1310             s => "list",
1311             time => "enum",
1312             ts => "boolean",
1313             v => "boolean",
1314             },
1315             },
1316              
1317             'cat.help' => {
1318             doc => "cat",
1319             parts => {},
1320             paths => [ [ {}, "_cat" ] ],
1321             qs => {
1322             error_trace => "boolean",
1323             filter_path => "list",
1324             help => "boolean",
1325             human => "boolean",
1326             s => "list",
1327             },
1328             },
1329              
1330             'cat.indices' => {
1331             doc => "cat-indices",
1332             parts => { index => { multi => 1 } },
1333             paths => [
1334             [ { index => 2 }, "_cat", "indices", "{index}" ],
1335             [ {}, "_cat", "indices" ],
1336             ],
1337             qs => {
1338             bytes => "enum",
1339             error_trace => "boolean",
1340             expand_wildcards => "enum",
1341             filter_path => "list",
1342             format => "string",
1343             h => "list",
1344             health => "enum",
1345             help => "boolean",
1346             human => "boolean",
1347             include_unloaded_segments => "boolean",
1348             local => "boolean",
1349             master_timeout => "time",
1350             pri => "boolean",
1351             s => "list",
1352             time => "enum",
1353             v => "boolean",
1354             },
1355             },
1356              
1357             'cat.master' => {
1358             doc => "cat-master",
1359             parts => {},
1360             paths => [ [ {}, "_cat", "master" ] ],
1361             qs => {
1362             error_trace => "boolean",
1363             filter_path => "list",
1364             format => "string",
1365             h => "list",
1366             help => "boolean",
1367             human => "boolean",
1368             local => "boolean",
1369             master_timeout => "time",
1370             s => "list",
1371             v => "boolean",
1372             },
1373             },
1374              
1375             'cat.ml_data_frame_analytics' => {
1376             doc => "cat-dfanalytics",
1377             parts => { id => {} },
1378             paths => [
1379             [ { id => 4 }, "_cat", "ml", "data_frame", "analytics", "{id}" ],
1380             [ {}, "_cat", "ml", "data_frame", "analytics" ],
1381             ],
1382             qs => {
1383             allow_no_match => "boolean",
1384             bytes => "enum",
1385             error_trace => "boolean",
1386             filter_path => "list",
1387             format => "string",
1388             h => "list",
1389             help => "boolean",
1390             human => "boolean",
1391             s => "list",
1392             time => "enum",
1393             v => "boolean",
1394             },
1395             },
1396              
1397             'cat.ml_datafeeds' => {
1398             doc => "cat-datafeeds",
1399             parts => { datafeed_id => {} },
1400             paths => [
1401             [ { datafeed_id => 3 }, "_cat",
1402             "ml", "datafeeds",
1403             "{datafeed_id}"
1404             ],
1405             [ {}, "_cat", "ml", "datafeeds" ],
1406             ],
1407             qs => {
1408             allow_no_datafeeds => "boolean",
1409             allow_no_match => "boolean",
1410             error_trace => "boolean",
1411             filter_path => "list",
1412             format => "string",
1413             h => "list",
1414             help => "boolean",
1415             human => "boolean",
1416             s => "list",
1417             time => "enum",
1418             v => "boolean",
1419             },
1420             },
1421              
1422             'cat.ml_jobs' => {
1423             doc => "cat-anomaly-detectors",
1424             parts => { job_id => {} },
1425             paths => [
1426             [ { job_id => 3 }, "_cat", "ml", "anomaly_detectors",
1427             "{job_id}"
1428             ],
1429             [ {}, "_cat", "ml", "anomaly_detectors" ],
1430             ],
1431             qs => {
1432             allow_no_jobs => "boolean",
1433             allow_no_match => "boolean",
1434             bytes => "enum",
1435             error_trace => "boolean",
1436             filter_path => "list",
1437             format => "string",
1438             h => "list",
1439             help => "boolean",
1440             human => "boolean",
1441             s => "list",
1442             time => "enum",
1443             v => "boolean",
1444             },
1445             },
1446              
1447             'cat.ml_trained_models' => {
1448             doc => "cat-trained-model",
1449             parts => { model_id => {} },
1450             paths => [
1451             [ { model_id => 3 }, "_cat",
1452             "ml", "trained_models",
1453             "{model_id}"
1454             ],
1455             [ {}, "_cat", "ml", "trained_models" ],
1456             ],
1457             qs => {
1458             allow_no_match => "boolean",
1459             bytes => "enum",
1460             error_trace => "boolean",
1461             filter_path => "list",
1462             format => "string",
1463             from => "int",
1464             h => "list",
1465             help => "boolean",
1466             human => "boolean",
1467             s => "list",
1468             size => "int",
1469             time => "enum",
1470             v => "boolean",
1471             },
1472             },
1473              
1474             'cat.nodeattrs' => {
1475             doc => "cat-nodeattrs",
1476             parts => {},
1477             paths => [ [ {}, "_cat", "nodeattrs" ] ],
1478             qs => {
1479             error_trace => "boolean",
1480             filter_path => "list",
1481             format => "string",
1482             h => "list",
1483             help => "boolean",
1484             human => "boolean",
1485             local => "boolean",
1486             master_timeout => "time",
1487             s => "list",
1488             v => "boolean",
1489             },
1490             },
1491              
1492             'cat.nodes' => {
1493             doc => "cat-nodes",
1494             parts => {},
1495             paths => [ [ {}, "_cat", "nodes" ] ],
1496             qs => {
1497             bytes => "enum",
1498             error_trace => "boolean",
1499             filter_path => "list",
1500             format => "string",
1501             full_id => "boolean",
1502             h => "list",
1503             help => "boolean",
1504             human => "boolean",
1505             include_unloaded_segments => "boolean",
1506             local => "boolean",
1507             master_timeout => "time",
1508             s => "list",
1509             time => "enum",
1510             v => "boolean",
1511             },
1512             },
1513              
1514             'cat.pending_tasks' => {
1515             doc => "cat-pending-tasks",
1516             parts => {},
1517             paths => [ [ {}, "_cat", "pending_tasks" ] ],
1518             qs => {
1519             error_trace => "boolean",
1520             filter_path => "list",
1521             format => "string",
1522             h => "list",
1523             help => "boolean",
1524             human => "boolean",
1525             local => "boolean",
1526             master_timeout => "time",
1527             s => "list",
1528             time => "enum",
1529             v => "boolean",
1530             },
1531             },
1532              
1533             'cat.plugins' => {
1534             doc => "cat-plugins",
1535             parts => {},
1536             paths => [ [ {}, "_cat", "plugins" ] ],
1537             qs => {
1538             error_trace => "boolean",
1539             filter_path => "list",
1540             format => "string",
1541             h => "list",
1542             help => "boolean",
1543             human => "boolean",
1544             include_bootstrap => "boolean",
1545             local => "boolean",
1546             master_timeout => "time",
1547             s => "list",
1548             v => "boolean",
1549             },
1550             },
1551              
1552             'cat.recovery' => {
1553             doc => "cat-recovery",
1554             parts => { index => { multi => 1 } },
1555             paths => [
1556             [ { index => 2 }, "_cat", "recovery", "{index}" ],
1557             [ {}, "_cat", "recovery" ],
1558             ],
1559             qs => {
1560             active_only => "boolean",
1561             bytes => "enum",
1562             detailed => "boolean",
1563             error_trace => "boolean",
1564             filter_path => "list",
1565             format => "string",
1566             h => "list",
1567             help => "boolean",
1568             human => "boolean",
1569             s => "list",
1570             time => "enum",
1571             v => "boolean",
1572             },
1573             },
1574              
1575             'cat.repositories' => {
1576             doc => "cat-repositories",
1577             parts => {},
1578             paths => [ [ {}, "_cat", "repositories" ] ],
1579             qs => {
1580             error_trace => "boolean",
1581             filter_path => "list",
1582             format => "string",
1583             h => "list",
1584             help => "boolean",
1585             human => "boolean",
1586             local => "boolean",
1587             master_timeout => "time",
1588             s => "list",
1589             v => "boolean",
1590             },
1591             },
1592              
1593             'cat.segments' => {
1594             doc => "cat-segments",
1595             parts => { index => { multi => 1 } },
1596             paths => [
1597             [ { index => 2 }, "_cat", "segments", "{index}" ],
1598             [ {}, "_cat", "segments" ],
1599             ],
1600             qs => {
1601             bytes => "enum",
1602             error_trace => "boolean",
1603             filter_path => "list",
1604             format => "string",
1605             h => "list",
1606             help => "boolean",
1607             human => "boolean",
1608             s => "list",
1609             v => "boolean",
1610             },
1611             },
1612              
1613             'cat.shards' => {
1614             doc => "cat-shards",
1615             parts => { index => { multi => 1 } },
1616             paths => [
1617             [ { index => 2 }, "_cat", "shards", "{index}" ],
1618             [ {}, "_cat", "shards" ],
1619             ],
1620             qs => {
1621             bytes => "enum",
1622             error_trace => "boolean",
1623             filter_path => "list",
1624             format => "string",
1625             h => "list",
1626             help => "boolean",
1627             human => "boolean",
1628             local => "boolean",
1629             master_timeout => "time",
1630             s => "list",
1631             time => "enum",
1632             v => "boolean",
1633             },
1634             },
1635              
1636             'cat.snapshots' => {
1637             doc => "cat-snapshots",
1638             parts => { repository => { multi => 1 } },
1639             paths => [
1640             [ { repository => 2 }, "_cat", "snapshots", "{repository}" ],
1641             [ {}, "_cat", "snapshots" ],
1642             ],
1643             qs => {
1644             error_trace => "boolean",
1645             filter_path => "list",
1646             format => "string",
1647             h => "list",
1648             help => "boolean",
1649             human => "boolean",
1650             ignore_unavailable => "boolean",
1651             master_timeout => "time",
1652             s => "list",
1653             time => "enum",
1654             v => "boolean",
1655             },
1656             },
1657              
1658             'cat.tasks' => {
1659             doc => "tasks",
1660             parts => {},
1661             paths => [ [ {}, "_cat", "tasks" ] ],
1662             qs => {
1663             actions => "list",
1664             detailed => "boolean",
1665             error_trace => "boolean",
1666             filter_path => "list",
1667             format => "string",
1668             h => "list",
1669             help => "boolean",
1670             human => "boolean",
1671             nodes => "list",
1672             parent_task_id => "string",
1673             s => "list",
1674             time => "enum",
1675             v => "boolean",
1676             },
1677             },
1678              
1679             'cat.templates' => {
1680             doc => "cat-templates",
1681             parts => { name => {} },
1682             paths => [
1683             [ { name => 2 }, "_cat", "templates", "{name}" ],
1684             [ {}, "_cat", "templates" ],
1685             ],
1686             qs => {
1687             error_trace => "boolean",
1688             filter_path => "list",
1689             format => "string",
1690             h => "list",
1691             help => "boolean",
1692             human => "boolean",
1693             local => "boolean",
1694             master_timeout => "time",
1695             s => "list",
1696             v => "boolean",
1697             },
1698             },
1699              
1700             'cat.thread_pool' => {
1701             doc => "cat-thread-pool",
1702             parts => { thread_pool_patterns => { multi => 1 } },
1703             paths => [
1704             [ { thread_pool_patterns => 2 }, "_cat",
1705             "thread_pool", "{thread_pool_patterns}",
1706             ],
1707             [ {}, "_cat", "thread_pool" ],
1708             ],
1709             qs => {
1710             error_trace => "boolean",
1711             filter_path => "list",
1712             format => "string",
1713             h => "list",
1714             help => "boolean",
1715             human => "boolean",
1716             local => "boolean",
1717             master_timeout => "time",
1718             s => "list",
1719             size => "enum",
1720             v => "boolean",
1721             },
1722             },
1723              
1724             'cat.transforms' => {
1725             doc => "cat-transforms",
1726             parts => { transform_id => {} },
1727             paths => [
1728             [ { transform_id => 2 }, "_cat", "transforms", "{transform_id}" ],
1729             [ {}, "_cat", "transforms" ],
1730             ],
1731             qs => {
1732             allow_no_match => "boolean",
1733             error_trace => "boolean",
1734             filter_path => "list",
1735             format => "string",
1736             from => "int",
1737             h => "list",
1738             help => "boolean",
1739             human => "boolean",
1740             s => "list",
1741             size => "int",
1742             time => "enum",
1743             v => "boolean",
1744             },
1745             },
1746              
1747             'ccr.delete_auto_follow_pattern' => {
1748             doc => "ccr-delete-auto-follow-pattern",
1749             method => "DELETE",
1750             parts => { name => {} },
1751             paths => [ [ { name => 2 }, "_ccr", "auto_follow", "{name}" ] ],
1752             qs => {
1753             error_trace => "boolean",
1754             filter_path => "list",
1755             human => "boolean"
1756             },
1757             },
1758              
1759             'ccr.follow' => {
1760             body => { required => 1 },
1761             doc => "ccr-put-follow",
1762             method => "PUT",
1763             parts => { index => {} },
1764             paths => [ [ { index => 0 }, "{index}", "_ccr", "follow" ] ],
1765             qs => {
1766             error_trace => "boolean",
1767             filter_path => "list",
1768             human => "boolean",
1769             wait_for_active_shards => "string",
1770             },
1771             },
1772              
1773             'ccr.follow_info' => {
1774             doc => "ccr-get-follow-info",
1775             parts => { index => { multi => 1 } },
1776             paths => [ [ { index => 0 }, "{index}", "_ccr", "info" ] ],
1777             qs => {
1778             error_trace => "boolean",
1779             filter_path => "list",
1780             human => "boolean"
1781             },
1782             },
1783              
1784             'ccr.follow_stats' => {
1785             doc => "ccr-get-follow-stats",
1786             parts => { index => { multi => 1 } },
1787             paths => [ [ { index => 0 }, "{index}", "_ccr", "stats" ] ],
1788             qs => {
1789             error_trace => "boolean",
1790             filter_path => "list",
1791             human => "boolean"
1792             },
1793             },
1794              
1795             'ccr.forget_follower' => {
1796             body => { required => 1 },
1797             doc => "ccr-post-forget-follower",
1798             method => "POST",
1799             parts => { index => {} },
1800             paths => [ [ { index => 0 }, "{index}", "_ccr", "forget_follower" ] ],
1801             qs => {
1802             error_trace => "boolean",
1803             filter_path => "list",
1804             human => "boolean"
1805             },
1806             },
1807              
1808             'ccr.get_auto_follow_pattern' => {
1809             doc => "ccr-get-auto-follow-pattern",
1810             parts => { name => {} },
1811             paths => [
1812             [ { name => 2 }, "_ccr", "auto_follow", "{name}" ],
1813             [ {}, "_ccr", "auto_follow" ],
1814             ],
1815             qs => {
1816             error_trace => "boolean",
1817             filter_path => "list",
1818             human => "boolean"
1819             },
1820             },
1821              
1822             'ccr.pause_auto_follow_pattern' => {
1823             doc => "ccr-pause-auto-follow-pattern",
1824             method => "POST",
1825             parts => { name => {} },
1826             paths =>
1827             [ [ { name => 2 }, "_ccr", "auto_follow", "{name}", "pause" ] ],
1828             qs => {
1829             error_trace => "boolean",
1830             filter_path => "list",
1831             human => "boolean"
1832             },
1833             },
1834              
1835             'ccr.pause_follow' => {
1836             doc => "ccr-post-pause-follow",
1837             method => "POST",
1838             parts => { index => {} },
1839             paths => [ [ { index => 0 }, "{index}", "_ccr", "pause_follow" ] ],
1840             qs => {
1841             error_trace => "boolean",
1842             filter_path => "list",
1843             human => "boolean"
1844             },
1845             },
1846              
1847             'ccr.put_auto_follow_pattern' => {
1848             body => { required => 1 },
1849             doc => "ccr-put-auto-follow-pattern",
1850             method => "PUT",
1851             parts => { name => {} },
1852             paths => [ [ { name => 2 }, "_ccr", "auto_follow", "{name}" ] ],
1853             qs => {
1854             error_trace => "boolean",
1855             filter_path => "list",
1856             human => "boolean"
1857             },
1858             },
1859              
1860             'ccr.resume_auto_follow_pattern' => {
1861             doc => "ccr-resume-auto-follow-pattern",
1862             method => "POST",
1863             parts => { name => {} },
1864             paths =>
1865             [ [ { name => 2 }, "_ccr", "auto_follow", "{name}", "resume" ] ],
1866             qs => {
1867             error_trace => "boolean",
1868             filter_path => "list",
1869             human => "boolean"
1870             },
1871             },
1872              
1873             'ccr.resume_follow' => {
1874             body => {},
1875             doc => "ccr-post-resume-follow",
1876             method => "POST",
1877             parts => { index => {} },
1878             paths => [ [ { index => 0 }, "{index}", "_ccr", "resume_follow" ] ],
1879             qs => {
1880             error_trace => "boolean",
1881             filter_path => "list",
1882             human => "boolean"
1883             },
1884             },
1885              
1886             'ccr.stats' => {
1887             doc => "ccr-get-stats",
1888             parts => {},
1889             paths => [ [ {}, "_ccr", "stats" ] ],
1890             qs => {
1891             error_trace => "boolean",
1892             filter_path => "list",
1893             human => "boolean"
1894             },
1895             },
1896              
1897             'ccr.unfollow' => {
1898             doc => "ccr-post-unfollow",
1899             method => "POST",
1900             parts => { index => {} },
1901             paths => [ [ { index => 0 }, "{index}", "_ccr", "unfollow" ] ],
1902             qs => {
1903             error_trace => "boolean",
1904             filter_path => "list",
1905             human => "boolean"
1906             },
1907             },
1908              
1909             'cluster.allocation_explain' => {
1910             body => {},
1911             doc => "cluster-allocation-explain",
1912             parts => {},
1913             paths => [ [ {}, "_cluster", "allocation", "explain" ] ],
1914             qs => {
1915             error_trace => "boolean",
1916             filter_path => "list",
1917             human => "boolean",
1918             include_disk_info => "boolean",
1919             include_yes_decisions => "boolean",
1920             },
1921             },
1922              
1923             'cluster.delete_component_template' => {
1924             doc => "indices-component-template",
1925             method => "DELETE",
1926             parts => { name => {} },
1927             paths => [ [ { name => 1 }, "_component_template", "{name}" ] ],
1928             qs => {
1929             error_trace => "boolean",
1930             filter_path => "list",
1931             human => "boolean",
1932             master_timeout => "time",
1933             timeout => "time",
1934             },
1935             },
1936              
1937             'cluster.delete_voting_config_exclusions' => {
1938             doc => "voting-config-exclusions",
1939             method => "DELETE",
1940             parts => {},
1941             paths => [ [ {}, "_cluster", "voting_config_exclusions" ] ],
1942             qs => {
1943             error_trace => "boolean",
1944             filter_path => "list",
1945             human => "boolean",
1946             wait_for_removal => "boolean",
1947             },
1948             },
1949              
1950             'cluster.exists_component_template' => {
1951             doc => "indices-component-template",
1952             method => "HEAD",
1953             parts => { name => {} },
1954             paths => [ [ { name => 1 }, "_component_template", "{name}" ] ],
1955             qs => {
1956             error_trace => "boolean",
1957             filter_path => "list",
1958             human => "boolean",
1959             local => "boolean",
1960             master_timeout => "time",
1961             },
1962             },
1963              
1964             'cluster.get_component_template' => {
1965             doc => "indices-component-template",
1966             parts => { name => { multi => 1 } },
1967             paths => [
1968             [ { name => 1 }, "_component_template", "{name}" ],
1969             [ {}, "_component_template" ],
1970             ],
1971             qs => {
1972             error_trace => "boolean",
1973             filter_path => "list",
1974             human => "boolean",
1975             local => "boolean",
1976             master_timeout => "time",
1977             },
1978             },
1979              
1980             'cluster.get_settings' => {
1981             doc => "cluster-get-settings",
1982             parts => {},
1983             paths => [ [ {}, "_cluster", "settings" ] ],
1984             qs => {
1985             error_trace => "boolean",
1986             filter_path => "list",
1987             flat_settings => "boolean",
1988             human => "boolean",
1989             include_defaults => "boolean",
1990             master_timeout => "time",
1991             timeout => "time",
1992             },
1993             },
1994              
1995             'cluster.health' => {
1996             doc => "cluster-health",
1997             parts => { index => { multi => 1 } },
1998             paths => [
1999             [ { index => 2 }, "_cluster", "health", "{index}" ],
2000             [ {}, "_cluster", "health" ],
2001             ],
2002             qs => {
2003             error_trace => "boolean",
2004             expand_wildcards => "enum",
2005             filter_path => "list",
2006             human => "boolean",
2007             level => "enum",
2008             local => "boolean",
2009             master_timeout => "time",
2010             timeout => "time",
2011             wait_for_active_shards => "string",
2012             wait_for_events => "enum",
2013             wait_for_no_initializing_shards => "boolean",
2014             wait_for_no_relocating_shards => "boolean",
2015             wait_for_nodes => "string",
2016             wait_for_status => "enum",
2017             },
2018             },
2019              
2020             'cluster.pending_tasks' => {
2021             doc => "cluster-pending",
2022             parts => {},
2023             paths => [ [ {}, "_cluster", "pending_tasks" ] ],
2024             qs => {
2025             error_trace => "boolean",
2026             filter_path => "list",
2027             human => "boolean",
2028             local => "boolean",
2029             master_timeout => "time",
2030             },
2031             },
2032              
2033             'cluster.post_voting_config_exclusions' => {
2034             doc => "voting-config-exclusions",
2035             method => "POST",
2036             parts => {},
2037             paths => [ [ {}, "_cluster", "voting_config_exclusions" ] ],
2038             qs => {
2039             error_trace => "boolean",
2040             filter_path => "list",
2041             human => "boolean",
2042             node_ids => "string",
2043             node_names => "string",
2044             timeout => "time",
2045             },
2046             },
2047              
2048             'cluster.put_component_template' => {
2049             body => { required => 1 },
2050             doc => "indices-component-template",
2051             method => "PUT",
2052             parts => { name => {} },
2053             paths => [ [ { name => 1 }, "_component_template", "{name}" ] ],
2054             qs => {
2055             create => "boolean",
2056             error_trace => "boolean",
2057             filter_path => "list",
2058             human => "boolean",
2059             master_timeout => "time",
2060             timeout => "time",
2061             },
2062             },
2063              
2064             'cluster.put_settings' => {
2065             body => { required => 1 },
2066             doc => "cluster-update-settings",
2067             method => "PUT",
2068             parts => {},
2069             paths => [ [ {}, "_cluster", "settings" ] ],
2070             qs => {
2071             error_trace => "boolean",
2072             filter_path => "list",
2073             flat_settings => "boolean",
2074             human => "boolean",
2075             master_timeout => "time",
2076             timeout => "time",
2077             },
2078             },
2079              
2080             'cluster.remote_info' => {
2081             doc => "cluster-remote-info",
2082             parts => {},
2083             paths => [ [ {}, "_remote", "info" ] ],
2084             qs => {
2085             error_trace => "boolean",
2086             filter_path => "list",
2087             human => "boolean"
2088             },
2089             },
2090              
2091             'cluster.reroute' => {
2092             body => {},
2093             doc => "cluster-reroute",
2094             method => "POST",
2095             parts => {},
2096             paths => [ [ {}, "_cluster", "reroute" ] ],
2097             qs => {
2098             dry_run => "boolean",
2099             error_trace => "boolean",
2100             explain => "boolean",
2101             filter_path => "list",
2102             human => "boolean",
2103             master_timeout => "time",
2104             metric => "list",
2105             retry_failed => "boolean",
2106             timeout => "time",
2107             },
2108             },
2109              
2110             'cluster.state' => {
2111             doc => "cluster-state",
2112             parts => { index => { multi => 1 }, metric => { multi => 1 } },
2113             paths => [
2114             [ { index => 3, metric => 2 }, "_cluster",
2115             "state", "{metric}",
2116             "{index}",
2117             ],
2118             [ { metric => 2 }, "_cluster", "state", "{metric}" ],
2119             [ {}, "_cluster", "state" ],
2120             ],
2121             qs => {
2122             allow_no_indices => "boolean",
2123             error_trace => "boolean",
2124             expand_wildcards => "enum",
2125             filter_path => "list",
2126             flat_settings => "boolean",
2127             human => "boolean",
2128             ignore_unavailable => "boolean",
2129             local => "boolean",
2130             master_timeout => "time",
2131             wait_for_metadata_version => "number",
2132             wait_for_timeout => "time",
2133             },
2134             },
2135              
2136             'cluster.stats' => {
2137             doc => "cluster-stats",
2138             parts => { node_id => { multi => 1 } },
2139             paths => [
2140             [ { node_id => 3 }, "_cluster", "stats", "nodes", "{node_id}" ],
2141             [ {}, "_cluster", "stats" ],
2142             ],
2143             qs => {
2144             error_trace => "boolean",
2145             filter_path => "list",
2146             flat_settings => "boolean",
2147             human => "boolean",
2148             timeout => "time",
2149             },
2150             },
2151              
2152             'dangling_indices.delete_dangling_index' => {
2153             doc => "modules-gateway-dangling-indices",
2154             method => "DELETE",
2155             parts => { index_uuid => {} },
2156             paths => [ [ { index_uuid => 1 }, "_dangling", "{index_uuid}" ] ],
2157             qs => {
2158             accept_data_loss => "boolean",
2159             error_trace => "boolean",
2160             filter_path => "list",
2161             human => "boolean",
2162             master_timeout => "time",
2163             timeout => "time",
2164             },
2165             },
2166              
2167             'dangling_indices.import_dangling_index' => {
2168             doc => "modules-gateway-dangling-indices",
2169             method => "POST",
2170             parts => { index_uuid => {} },
2171             paths => [ [ { index_uuid => 1 }, "_dangling", "{index_uuid}" ] ],
2172             qs => {
2173             accept_data_loss => "boolean",
2174             error_trace => "boolean",
2175             filter_path => "list",
2176             human => "boolean",
2177             master_timeout => "time",
2178             timeout => "time",
2179             },
2180             },
2181              
2182             'dangling_indices.list_dangling_indices' => {
2183             doc => "modules-gateway-dangling-indices",
2184             parts => {},
2185             paths => [ [ {}, "_dangling" ] ],
2186             qs => {
2187             error_trace => "boolean",
2188             filter_path => "list",
2189             human => "boolean"
2190             },
2191             },
2192              
2193             'data_frame_transform_deprecated.delete_transform' => {
2194             doc => "delete-transform",
2195             method => "DELETE",
2196             parts => { transform_id => {} },
2197             paths => [
2198             [ { transform_id => 2 }, "_data_frame",
2199             "transforms", "{transform_id}",
2200             ],
2201             ],
2202             qs => {
2203             error_trace => "boolean",
2204             filter_path => "list",
2205             force => "boolean",
2206             human => "boolean",
2207             },
2208             },
2209              
2210             'data_frame_transform_deprecated.get_transform' => {
2211             doc => "get-transform",
2212             parts => { transform_id => {} },
2213             paths => [
2214             [ { transform_id => 2 }, "_data_frame",
2215             "transforms", "{transform_id}",
2216             ],
2217             [ {}, "_data_frame", "transforms" ],
2218             ],
2219             qs => {
2220             allow_no_match => "boolean",
2221             error_trace => "boolean",
2222             exclude_generated => "boolean",
2223             filter_path => "list",
2224             from => "int",
2225             human => "boolean",
2226             size => "int",
2227             },
2228             },
2229              
2230             'data_frame_transform_deprecated.get_transform_stats' => {
2231             doc => "get-transform-stats",
2232             parts => { transform_id => {} },
2233             paths => [
2234             [ { transform_id => 2 }, "_data_frame",
2235             "transforms", "{transform_id}",
2236             "_stats",
2237             ],
2238             ],
2239             qs => {
2240             allow_no_match => "boolean",
2241             error_trace => "boolean",
2242             filter_path => "list",
2243             from => "number",
2244             human => "boolean",
2245             size => "number",
2246             },
2247             },
2248              
2249             'data_frame_transform_deprecated.preview_transform' => {
2250             body => { required => 1 },
2251             doc => "preview-transform",
2252             method => "POST",
2253             parts => {},
2254             paths => [ [ {}, "_data_frame", "transforms", "_preview" ] ],
2255             qs => {
2256             error_trace => "boolean",
2257             filter_path => "list",
2258             human => "boolean"
2259             },
2260             },
2261              
2262             'data_frame_transform_deprecated.put_transform' => {
2263             body => { required => 1 },
2264             doc => "put-transform",
2265             method => "PUT",
2266             parts => { transform_id => {} },
2267             paths => [
2268             [ { transform_id => 2 }, "_data_frame",
2269             "transforms", "{transform_id}",
2270             ],
2271             ],
2272             qs => {
2273             defer_validation => "boolean",
2274             error_trace => "boolean",
2275             filter_path => "list",
2276             human => "boolean",
2277             },
2278             },
2279              
2280             'data_frame_transform_deprecated.start_transform' => {
2281             doc => "start-transform",
2282             method => "POST",
2283             parts => { transform_id => {} },
2284             paths => [
2285             [ { transform_id => 2 }, "_data_frame",
2286             "transforms", "{transform_id}",
2287             "_start",
2288             ],
2289             ],
2290             qs => {
2291             error_trace => "boolean",
2292             filter_path => "list",
2293             human => "boolean",
2294             timeout => "time",
2295             },
2296             },
2297              
2298             'data_frame_transform_deprecated.stop_transform' => {
2299             doc => "stop-transform",
2300             method => "POST",
2301             parts => { transform_id => {} },
2302             paths => [
2303             [ { transform_id => 2 }, "_data_frame",
2304             "transforms", "{transform_id}",
2305             "_stop",
2306             ],
2307             ],
2308             qs => {
2309             allow_no_match => "boolean",
2310             error_trace => "boolean",
2311             filter_path => "list",
2312             human => "boolean",
2313             timeout => "time",
2314             wait_for_completion => "boolean",
2315             },
2316             },
2317              
2318             'data_frame_transform_deprecated.update_transform' => {
2319             body => { required => 1 },
2320             doc => "update-transform",
2321             method => "POST",
2322             parts => { transform_id => { required => 1 } },
2323             paths => [
2324             [ { transform_id => 2 }, "_data_frame",
2325             "transforms", "{transform_id}",
2326             "_update",
2327             ],
2328             ],
2329             qs => {
2330             defer_validation => "boolean",
2331             error_trace => "boolean",
2332             filter_path => "list",
2333             human => "boolean",
2334             },
2335             },
2336              
2337             'enrich.delete_policy' => {
2338             doc => "delete-enrich-policy-api",
2339             method => "DELETE",
2340             parts => { name => {} },
2341             paths => [ [ { name => 2 }, "_enrich", "policy", "{name}" ] ],
2342             qs => {
2343             error_trace => "boolean",
2344             filter_path => "list",
2345             human => "boolean"
2346             },
2347             },
2348              
2349             'enrich.execute_policy' => {
2350             doc => "execute-enrich-policy-api",
2351             method => "PUT",
2352             parts => { name => {} },
2353             paths =>
2354             [ [ { name => 2 }, "_enrich", "policy", "{name}", "_execute" ] ],
2355             qs => {
2356             error_trace => "boolean",
2357             filter_path => "list",
2358             human => "boolean",
2359             wait_for_completion => "boolean",
2360             },
2361             },
2362              
2363             'enrich.get_policy' => {
2364             doc => "get-enrich-policy-api",
2365             parts => { name => { multi => 1 } },
2366             paths => [
2367             [ { name => 2 }, "_enrich", "policy", "{name}" ],
2368             [ {}, "_enrich", "policy" ],
2369             ],
2370             qs => {
2371             error_trace => "boolean",
2372             filter_path => "list",
2373             human => "boolean"
2374             },
2375             },
2376              
2377             'enrich.put_policy' => {
2378             body => { required => 1 },
2379             doc => "put-enrich-policy-api",
2380             method => "PUT",
2381             parts => { name => {} },
2382             paths => [ [ { name => 2 }, "_enrich", "policy", "{name}" ] ],
2383             qs => {
2384             error_trace => "boolean",
2385             filter_path => "list",
2386             human => "boolean"
2387             },
2388             },
2389              
2390             'enrich.stats' => {
2391             doc => "enrich-stats-api",
2392             parts => {},
2393             paths => [ [ {}, "_enrich", "_stats" ] ],
2394             qs => {
2395             error_trace => "boolean",
2396             filter_path => "list",
2397             human => "boolean"
2398             },
2399             },
2400              
2401             'eql.delete' => {
2402             doc => "eql-search-api",
2403             method => "DELETE",
2404             parts => { id => {} },
2405             paths => [ [ { id => 2 }, "_eql", "search", "{id}" ] ],
2406             qs => {
2407             error_trace => "boolean",
2408             filter_path => "list",
2409             human => "boolean"
2410             },
2411             },
2412              
2413             'eql.get' => {
2414             doc => "eql-search-api",
2415             parts => { id => {} },
2416             paths => [ [ { id => 2 }, "_eql", "search", "{id}" ] ],
2417             qs => {
2418             error_trace => "boolean",
2419             filter_path => "list",
2420             human => "boolean",
2421             keep_alive => "time",
2422             wait_for_completion_timeout => "time",
2423             },
2424             },
2425              
2426             'eql.get_status' => {
2427             doc => "eql-search-api",
2428             parts => { id => {} },
2429             paths => [ [ { id => 3 }, "_eql", "search", "status", "{id}" ] ],
2430             qs => {
2431             error_trace => "boolean",
2432             filter_path => "list",
2433             human => "boolean"
2434             },
2435             },
2436              
2437             'eql.search' => {
2438             body => { required => 1 },
2439             doc => "eql-search-api",
2440             parts => { index => {} },
2441             paths => [ [ { index => 0 }, "{index}", "_eql", "search" ] ],
2442             qs => {
2443             error_trace => "boolean",
2444             filter_path => "list",
2445             human => "boolean",
2446             keep_alive => "time",
2447             keep_on_completion => "boolean",
2448             wait_for_completion_timeout => "time",
2449             },
2450             },
2451              
2452             'features.get_features' => {
2453             doc => "get-features-api",
2454             parts => {},
2455             paths => [ [ {}, "_features" ] ],
2456             qs => {
2457             error_trace => "boolean",
2458             filter_path => "list",
2459             human => "boolean",
2460             master_timeout => "time",
2461             },
2462             },
2463              
2464             'features.reset_features' => {
2465             doc => "modules-snapshots",
2466             method => "POST",
2467             parts => {},
2468             paths => [ [ {}, "_features", "_reset" ] ],
2469             qs => {
2470             error_trace => "boolean",
2471             filter_path => "list",
2472             human => "boolean"
2473             },
2474             },
2475              
2476             'fleet.global_checkpoints' => {
2477             parts => { index => {} },
2478             paths =>
2479             [ [ { index => 0 }, "{index}", "_fleet", "global_checkpoints" ] ],
2480             qs => {
2481             checkpoints => "list",
2482             error_trace => "boolean",
2483             filter_path => "list",
2484             human => "boolean",
2485             timeout => "time",
2486             wait_for_advance => "boolean",
2487             wait_for_index => "boolean",
2488             },
2489             },
2490              
2491             'graph.explore' => {
2492             body => {},
2493             doc => "graph-explore-api",
2494             parts => { index => { multi => 1 }, type => { multi => 1 } },
2495             paths => [
2496             [ { index => 0, type => 1 }, "{index}",
2497             "{type}", "_graph",
2498             "explore",
2499             ],
2500             [ { index => 0 }, "{index}", "_graph", "explore" ],
2501             ],
2502             qs => {
2503             error_trace => "boolean",
2504             filter_path => "list",
2505             human => "boolean",
2506             routing => "string",
2507             timeout => "time",
2508             },
2509             },
2510              
2511             'ilm.delete_lifecycle' => {
2512             doc => "ilm-delete-lifecycle",
2513             method => "DELETE",
2514             parts => { policy => {} },
2515             paths => [ [ { policy => 2 }, "_ilm", "policy", "{policy}" ] ],
2516             qs => {
2517             error_trace => "boolean",
2518             filter_path => "list",
2519             human => "boolean"
2520             },
2521             },
2522              
2523             'ilm.explain_lifecycle' => {
2524             doc => "ilm-explain-lifecycle",
2525             parts => { index => {} },
2526             paths => [ [ { index => 0 }, "{index}", "_ilm", "explain" ] ],
2527             qs => {
2528             error_trace => "boolean",
2529             filter_path => "list",
2530             human => "boolean",
2531             only_errors => "boolean",
2532             only_managed => "boolean",
2533             },
2534             },
2535              
2536             'ilm.get_lifecycle' => {
2537             doc => "ilm-get-lifecycle",
2538             parts => { policy => {} },
2539             paths => [
2540             [ { policy => 2 }, "_ilm", "policy", "{policy}" ],
2541             [ {}, "_ilm", "policy" ],
2542             ],
2543             qs => {
2544             error_trace => "boolean",
2545             filter_path => "list",
2546             human => "boolean"
2547             },
2548             },
2549              
2550             'ilm.get_status' => {
2551             doc => "ilm-get-status",
2552             parts => {},
2553             paths => [ [ {}, "_ilm", "status" ] ],
2554             qs => {
2555             error_trace => "boolean",
2556             filter_path => "list",
2557             human => "boolean"
2558             },
2559             },
2560              
2561             'ilm.migrate_to_data_tiers' => {
2562             body => {},
2563             doc => "ilm-migrate-to-data-tiers",
2564             method => "POST",
2565             parts => {},
2566             paths => [ [ {}, "_ilm", "migrate_to_data_tiers" ] ],
2567             qs => {
2568             dry_run => "boolean",
2569             error_trace => "boolean",
2570             filter_path => "list",
2571             human => "boolean",
2572             },
2573             },
2574              
2575             'ilm.move_to_step' => {
2576             body => {},
2577             doc => "ilm-move-to-step",
2578             method => "POST",
2579             parts => { index => {} },
2580             paths => [ [ { index => 2 }, "_ilm", "move", "{index}" ] ],
2581             qs => {
2582             error_trace => "boolean",
2583             filter_path => "list",
2584             human => "boolean"
2585             },
2586             },
2587              
2588             'ilm.put_lifecycle' => {
2589             body => {},
2590             doc => "ilm-put-lifecycle",
2591             method => "PUT",
2592             parts => { policy => {} },
2593             paths => [ [ { policy => 2 }, "_ilm", "policy", "{policy}" ] ],
2594             qs => {
2595             error_trace => "boolean",
2596             filter_path => "list",
2597             human => "boolean"
2598             },
2599             },
2600              
2601             'ilm.remove_policy' => {
2602             doc => "ilm-remove-policy",
2603             method => "POST",
2604             parts => { index => {} },
2605             paths => [ [ { index => 0 }, "{index}", "_ilm", "remove" ] ],
2606             qs => {
2607             error_trace => "boolean",
2608             filter_path => "list",
2609             human => "boolean"
2610             },
2611             },
2612              
2613             'ilm.retry' => {
2614             doc => "ilm-retry-policy",
2615             method => "POST",
2616             parts => { index => {} },
2617             paths => [ [ { index => 0 }, "{index}", "_ilm", "retry" ] ],
2618             qs => {
2619             error_trace => "boolean",
2620             filter_path => "list",
2621             human => "boolean"
2622             },
2623             },
2624              
2625             'ilm.start' => {
2626             doc => "ilm-start",
2627             method => "POST",
2628             parts => {},
2629             paths => [ [ {}, "_ilm", "start" ] ],
2630             qs => {
2631             error_trace => "boolean",
2632             filter_path => "list",
2633             human => "boolean"
2634             },
2635             },
2636              
2637             'ilm.stop' => {
2638             doc => "ilm-stop",
2639             method => "POST",
2640             parts => {},
2641             paths => [ [ {}, "_ilm", "stop" ] ],
2642             qs => {
2643             error_trace => "boolean",
2644             filter_path => "list",
2645             human => "boolean"
2646             },
2647             },
2648              
2649             'indices.add_block' => {
2650             doc => "index-modules-blocks",
2651             method => "PUT",
2652             parts => { block => {}, index => { multi => 1 } },
2653             paths => [
2654             [ { block => 2, index => 0 }, "{index}", "_block", "{block}" ]
2655             ],
2656             qs => {
2657             allow_no_indices => "boolean",
2658             error_trace => "boolean",
2659             expand_wildcards => "enum",
2660             filter_path => "list",
2661             human => "boolean",
2662             ignore_unavailable => "boolean",
2663             master_timeout => "time",
2664             timeout => "time",
2665             },
2666             },
2667              
2668             'indices.analyze' => {
2669             body => {},
2670             doc => "indices-analyze",
2671             parts => { index => {} },
2672             paths =>
2673             [ [ { index => 0 }, "{index}", "_analyze" ], [ {}, "_analyze" ] ],
2674             qs => {
2675             error_trace => "boolean",
2676             filter_path => "list",
2677             human => "boolean"
2678             },
2679             },
2680              
2681             'indices.clear_cache' => {
2682             doc => "indices-clearcache",
2683             method => "POST",
2684             parts => { index => { multi => 1 } },
2685             paths => [
2686             [ { index => 0 }, "{index}", "_cache", "clear" ],
2687             [ {}, "_cache", "clear" ],
2688             ],
2689             qs => {
2690             allow_no_indices => "boolean",
2691             error_trace => "boolean",
2692             expand_wildcards => "enum",
2693             fielddata => "boolean",
2694             fields => "list",
2695             filter_path => "list",
2696             human => "boolean",
2697             ignore_unavailable => "boolean",
2698             query => "boolean",
2699             request => "boolean",
2700             },
2701             },
2702              
2703             'indices.clone' => {
2704             body => {},
2705             doc => "indices-clone-index",
2706             method => "PUT",
2707             parts => { index => {}, target => {} },
2708             paths => [
2709             [ { index => 0, target => 2 }, "{index}", "_clone", "{target}" ],
2710             ],
2711             qs => {
2712             error_trace => "boolean",
2713             filter_path => "list",
2714             human => "boolean",
2715             master_timeout => "time",
2716             timeout => "time",
2717             wait_for_active_shards => "string",
2718             },
2719             },
2720              
2721             'indices.close' => {
2722             doc => "indices-open-close",
2723             method => "POST",
2724             parts => { index => { multi => 1 } },
2725             paths => [ [ { index => 0 }, "{index}", "_close" ] ],
2726             qs => {
2727             allow_no_indices => "boolean",
2728             error_trace => "boolean",
2729             expand_wildcards => "enum",
2730             filter_path => "list",
2731             human => "boolean",
2732             ignore_unavailable => "boolean",
2733             master_timeout => "time",
2734             timeout => "time",
2735             wait_for_active_shards => "string",
2736             },
2737             },
2738              
2739             'indices.create' => {
2740             body => {},
2741             doc => "indices-create-index",
2742             method => "PUT",
2743             parts => { index => {} },
2744             paths => [ [ { index => 0 }, "{index}" ] ],
2745             qs => {
2746             error_trace => "boolean",
2747             filter_path => "list",
2748             human => "boolean",
2749             include_type_name => "boolean",
2750             master_timeout => "time",
2751             timeout => "time",
2752             wait_for_active_shards => "string",
2753             },
2754             },
2755              
2756             'indices.create_data_stream' => {
2757             doc => "data-streams",
2758             method => "PUT",
2759             parts => { name => {} },
2760             paths => [ [ { name => 1 }, "_data_stream", "{name}" ] ],
2761             qs => {
2762             error_trace => "boolean",
2763             filter_path => "list",
2764             human => "boolean"
2765             },
2766             },
2767              
2768             'indices.data_streams_stats' => {
2769             doc => "data-streams",
2770             parts => { name => { multi => 1 } },
2771             paths => [
2772             [ { name => 1 }, "_data_stream", "{name}", "_stats" ],
2773             [ {}, "_data_stream", "_stats" ],
2774             ],
2775             qs => {
2776             error_trace => "boolean",
2777             filter_path => "list",
2778             human => "boolean"
2779             },
2780             },
2781              
2782             'indices.delete' => {
2783             doc => "indices-delete-index",
2784             method => "DELETE",
2785             parts => { index => { multi => 1 } },
2786             paths => [ [ { index => 0 }, "{index}" ] ],
2787             qs => {
2788             allow_no_indices => "boolean",
2789             error_trace => "boolean",
2790             expand_wildcards => "enum",
2791             filter_path => "list",
2792             human => "boolean",
2793             ignore_unavailable => "boolean",
2794             master_timeout => "time",
2795             timeout => "time",
2796             },
2797             },
2798              
2799             'indices.delete_alias' => {
2800             doc => "indices-aliases",
2801             method => "DELETE",
2802             parts => { index => { multi => 1 }, name => { multi => 1 } },
2803             paths =>
2804             [ [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ] ],
2805             qs => {
2806             error_trace => "boolean",
2807             filter_path => "list",
2808             human => "boolean",
2809             master_timeout => "time",
2810             timeout => "time",
2811             },
2812             },
2813              
2814             'indices.delete_data_stream' => {
2815             doc => "data-streams",
2816             method => "DELETE",
2817             parts => { name => { multi => 1 } },
2818             paths => [ [ { name => 1 }, "_data_stream", "{name}" ] ],
2819             qs => {
2820             error_trace => "boolean",
2821             expand_wildcards => "enum",
2822             filter_path => "list",
2823             human => "boolean",
2824             },
2825             },
2826              
2827             'indices.delete_index_template' => {
2828             doc => "indices-templates",
2829             method => "DELETE",
2830             parts => { name => {} },
2831             paths => [ [ { name => 1 }, "_index_template", "{name}" ] ],
2832             qs => {
2833             error_trace => "boolean",
2834             filter_path => "list",
2835             human => "boolean",
2836             master_timeout => "time",
2837             timeout => "time",
2838             },
2839             },
2840              
2841             'indices.delete_template' => {
2842             doc => "indices-templates",
2843             method => "DELETE",
2844             parts => { name => {} },
2845             paths => [ [ { name => 1 }, "_template", "{name}" ] ],
2846             qs => {
2847             error_trace => "boolean",
2848             filter_path => "list",
2849             human => "boolean",
2850             master_timeout => "time",
2851             timeout => "time",
2852             },
2853             },
2854              
2855             'indices.disk_usage' => {
2856             doc => "indices-disk-usage",
2857             method => "POST",
2858             parts => { index => {} },
2859             paths => [ [ { index => 0 }, "{index}", "_disk_usage" ] ],
2860             qs => {
2861             allow_no_indices => "boolean",
2862             error_trace => "boolean",
2863             expand_wildcards => "enum",
2864             filter_path => "list",
2865             flush => "boolean",
2866             human => "boolean",
2867             ignore_unavailable => "boolean",
2868             run_expensive_tasks => "boolean",
2869             },
2870             },
2871              
2872             'indices.exists' => {
2873             doc => "indices-exists",
2874             method => "HEAD",
2875             parts => { index => { multi => 1 } },
2876             paths => [ [ { index => 0 }, "{index}" ] ],
2877             qs => {
2878             allow_no_indices => "boolean",
2879             error_trace => "boolean",
2880             expand_wildcards => "enum",
2881             filter_path => "list",
2882             flat_settings => "boolean",
2883             human => "boolean",
2884             ignore_unavailable => "boolean",
2885             include_defaults => "boolean",
2886             local => "boolean",
2887             },
2888             },
2889              
2890             'indices.exists_alias' => {
2891             doc => "indices-aliases",
2892             method => "HEAD",
2893             parts => { index => { multi => 1 }, name => { multi => 1 } },
2894             paths => [
2895             [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ],
2896             [ { name => 1 }, "_alias", "{name}" ],
2897             ],
2898             qs => {
2899             allow_no_indices => "boolean",
2900             error_trace => "boolean",
2901             expand_wildcards => "enum",
2902             filter_path => "list",
2903             human => "boolean",
2904             ignore_unavailable => "boolean",
2905             local => "boolean",
2906             },
2907             },
2908              
2909             'indices.exists_index_template' => {
2910             doc => "indices-templates",
2911             method => "HEAD",
2912             parts => { name => {} },
2913             paths => [ [ { name => 1 }, "_index_template", "{name}" ] ],
2914             qs => {
2915             error_trace => "boolean",
2916             filter_path => "list",
2917             flat_settings => "boolean",
2918             human => "boolean",
2919             local => "boolean",
2920             master_timeout => "time",
2921             },
2922             },
2923              
2924             'indices.exists_template' => {
2925             doc => "indices-templates",
2926             method => "HEAD",
2927             parts => { name => { multi => 1 } },
2928             paths => [ [ { name => 1 }, "_template", "{name}" ] ],
2929             qs => {
2930             error_trace => "boolean",
2931             filter_path => "list",
2932             flat_settings => "boolean",
2933             human => "boolean",
2934             local => "boolean",
2935             master_timeout => "time",
2936             },
2937             },
2938              
2939             'indices.exists_type' => {
2940             doc => "indices-types-exists",
2941             method => "HEAD",
2942             parts => { index => { multi => 1 }, type => { multi => 1 } },
2943             paths => [
2944             [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ]
2945             ],
2946             qs => {
2947             allow_no_indices => "boolean",
2948             error_trace => "boolean",
2949             expand_wildcards => "enum",
2950             filter_path => "list",
2951             human => "boolean",
2952             ignore_unavailable => "boolean",
2953             local => "boolean",
2954             },
2955             },
2956              
2957             'indices.field_usage_stats' => {
2958             doc => "field-usage-stats",
2959             parts => { index => {} },
2960             paths => [ [ { index => 0 }, "{index}", "_field_usage_stats" ] ],
2961             qs => {
2962             allow_no_indices => "boolean",
2963             error_trace => "boolean",
2964             expand_wildcards => "enum",
2965             fields => "list",
2966             filter_path => "list",
2967             human => "boolean",
2968             ignore_unavailable => "boolean",
2969             },
2970             },
2971              
2972             'indices.flush' => {
2973             doc => "indices-flush",
2974             method => "POST",
2975             parts => { index => { multi => 1 } },
2976             paths =>
2977             [ [ { index => 0 }, "{index}", "_flush" ], [ {}, "_flush" ] ],
2978             qs => {
2979             allow_no_indices => "boolean",
2980             error_trace => "boolean",
2981             expand_wildcards => "enum",
2982             filter_path => "list",
2983             force => "boolean",
2984             human => "boolean",
2985             ignore_unavailable => "boolean",
2986             wait_if_ongoing => "boolean",
2987             },
2988             },
2989              
2990             'indices.flush_synced' => {
2991             doc => "indices-synced-flush-api",
2992             method => "POST",
2993             parts => { index => { multi => 1 } },
2994             paths => [
2995             [ { index => 0 }, "{index}", "_flush", "synced" ],
2996             [ {}, "_flush", "synced" ],
2997             ],
2998             qs => {
2999             allow_no_indices => "boolean",
3000             error_trace => "boolean",
3001             expand_wildcards => "enum",
3002             filter_path => "list",
3003             human => "boolean",
3004             ignore_unavailable => "boolean",
3005             },
3006             },
3007              
3008             'indices.forcemerge' => {
3009             doc => "indices-forcemerge",
3010             method => "POST",
3011             parts => { index => { multi => 1 } },
3012             paths => [
3013             [ { index => 0 }, "{index}", "_forcemerge" ],
3014             [ {}, "_forcemerge" ],
3015             ],
3016             qs => {
3017             allow_no_indices => "boolean",
3018             error_trace => "boolean",
3019             expand_wildcards => "enum",
3020             filter_path => "list",
3021             flush => "boolean",
3022             human => "boolean",
3023             ignore_unavailable => "boolean",
3024             max_num_segments => "number",
3025             only_expunge_deletes => "boolean",
3026             },
3027             },
3028              
3029             'indices.freeze' => {
3030             doc => "freeze-index-api",
3031             method => "POST",
3032             parts => { index => {} },
3033             paths => [ [ { index => 0 }, "{index}", "_freeze" ] ],
3034             qs => {
3035             allow_no_indices => "boolean",
3036             error_trace => "boolean",
3037             expand_wildcards => "enum",
3038             filter_path => "list",
3039             human => "boolean",
3040             ignore_unavailable => "boolean",
3041             master_timeout => "time",
3042             timeout => "time",
3043             wait_for_active_shards => "string",
3044             },
3045             },
3046              
3047             'indices.get' => {
3048             doc => "indices-get-index",
3049             parts => { index => { multi => 1 } },
3050             paths => [ [ { index => 0 }, "{index}" ] ],
3051             qs => {
3052             allow_no_indices => "boolean",
3053             error_trace => "boolean",
3054             expand_wildcards => "enum",
3055             filter_path => "list",
3056             flat_settings => "boolean",
3057             human => "boolean",
3058             ignore_unavailable => "boolean",
3059             include_defaults => "boolean",
3060             include_type_name => "boolean",
3061             local => "boolean",
3062             master_timeout => "time",
3063             },
3064             },
3065              
3066             'indices.get_alias' => {
3067             doc => "indices-aliases",
3068             parts => { index => { multi => 1 }, name => { multi => 1 } },
3069             paths => [
3070             [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ],
3071             [ { index => 0 }, "{index}", "_alias" ],
3072             [ { name => 1 }, "_alias", "{name}" ],
3073             [ {}, "_alias" ],
3074             ],
3075             qs => {
3076             allow_no_indices => "boolean",
3077             error_trace => "boolean",
3078             expand_wildcards => "enum",
3079             filter_path => "list",
3080             human => "boolean",
3081             ignore_unavailable => "boolean",
3082             local => "boolean",
3083             },
3084             },
3085              
3086             'indices.get_data_stream' => {
3087             doc => "data-streams",
3088             parts => { name => { multi => 1 } },
3089             paths => [
3090             [ { name => 1 }, "_data_stream", "{name}" ],
3091             [ {}, "_data_stream" ],
3092             ],
3093             qs => {
3094             error_trace => "boolean",
3095             expand_wildcards => "enum",
3096             filter_path => "list",
3097             human => "boolean",
3098             },
3099             },
3100              
3101             'indices.get_field_mapping' => {
3102             doc => "indices-get-field-mapping",
3103             parts => {
3104             fields => { multi => 1 },
3105             index => { multi => 1 },
3106             type => { multi => 1 },
3107             },
3108             paths => [
3109             [ { fields => 4, index => 0, type => 2 }, "{index}",
3110             "_mapping", "{type}",
3111             "field", "{fields}",
3112             ],
3113             [ { fields => 3, index => 0 }, "{index}",
3114             "_mapping", "field",
3115             "{fields}",
3116             ],
3117             [ { fields => 3, type => 1 }, "_mapping",
3118             "{type}", "field",
3119             "{fields}",
3120             ],
3121             [ { fields => 2 }, "_mapping", "field", "{fields}" ],
3122             ],
3123             qs => {
3124             allow_no_indices => "boolean",
3125             error_trace => "boolean",
3126             expand_wildcards => "enum",
3127             filter_path => "list",
3128             human => "boolean",
3129             ignore_unavailable => "boolean",
3130             include_defaults => "boolean",
3131             include_type_name => "boolean",
3132             local => "boolean",
3133             },
3134             },
3135              
3136             'indices.get_index_template' => {
3137             doc => "indices-templates",
3138             parts => { name => { multi => 1 } },
3139             paths => [
3140             [ { name => 1 }, "_index_template", "{name}" ],
3141             [ {}, "_index_template" ],
3142             ],
3143             qs => {
3144             error_trace => "boolean",
3145             filter_path => "list",
3146             flat_settings => "boolean",
3147             human => "boolean",
3148             local => "boolean",
3149             master_timeout => "time",
3150             },
3151             },
3152              
3153             'indices.get_mapping' => {
3154             doc => "indices-get-mapping",
3155             parts => { index => { multi => 1 }, type => { multi => 1 } },
3156             paths => [
3157             [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ],
3158             [ { index => 0 }, "{index}", "_mapping" ],
3159             [ { type => 1 }, "_mapping", "{type}" ],
3160             [ {}, "_mapping" ],
3161             ],
3162             qs => {
3163             allow_no_indices => "boolean",
3164             error_trace => "boolean",
3165             expand_wildcards => "enum",
3166             filter_path => "list",
3167             human => "boolean",
3168             ignore_unavailable => "boolean",
3169             include_type_name => "boolean",
3170             local => "boolean",
3171             master_timeout => "time",
3172             },
3173             },
3174              
3175             'indices.get_settings' => {
3176             doc => "indices-get-settings",
3177             parts => { index => { multi => 1 }, name => { multi => 1 } },
3178             paths => [
3179             [ { index => 0, name => 2 }, "{index}", "_settings", "{name}" ],
3180             [ { index => 0 }, "{index}", "_settings" ],
3181             [ { name => 1 }, "_settings", "{name}" ],
3182             [ {}, "_settings" ],
3183             ],
3184             qs => {
3185             allow_no_indices => "boolean",
3186             error_trace => "boolean",
3187             expand_wildcards => "enum",
3188             filter_path => "list",
3189             flat_settings => "boolean",
3190             human => "boolean",
3191             ignore_unavailable => "boolean",
3192             include_defaults => "boolean",
3193             local => "boolean",
3194             master_timeout => "time",
3195             },
3196             },
3197              
3198             'indices.get_template' => {
3199             doc => "indices-templates",
3200             parts => { name => { multi => 1 } },
3201             paths =>
3202             [ [ { name => 1 }, "_template", "{name}" ], [ {}, "_template" ] ],
3203             qs => {
3204             error_trace => "boolean",
3205             filter_path => "list",
3206             flat_settings => "boolean",
3207             human => "boolean",
3208             include_type_name => "boolean",
3209             local => "boolean",
3210             master_timeout => "time",
3211             },
3212             },
3213              
3214             'indices.get_upgrade' => {
3215             doc => "indices-upgrade",
3216             parts => { index => { multi => 1 } },
3217             paths =>
3218             [ [ { index => 0 }, "{index}", "_upgrade" ], [ {}, "_upgrade" ] ],
3219             qs => {
3220             allow_no_indices => "boolean",
3221             error_trace => "boolean",
3222             expand_wildcards => "enum",
3223             filter_path => "list",
3224             human => "boolean",
3225             ignore_unavailable => "boolean",
3226             },
3227             },
3228              
3229             'indices.migrate_to_data_stream' => {
3230             doc => "data-streams",
3231             method => "POST",
3232             parts => { name => {} },
3233             paths => [ [ { name => 2 }, "_data_stream", "_migrate", "{name}" ] ],
3234             qs => {
3235             error_trace => "boolean",
3236             filter_path => "list",
3237             human => "boolean"
3238             },
3239             },
3240              
3241             'indices.open' => {
3242             doc => "indices-open-close",
3243             method => "POST",
3244             parts => { index => { multi => 1 } },
3245             paths => [ [ { index => 0 }, "{index}", "_open" ] ],
3246             qs => {
3247             allow_no_indices => "boolean",
3248             error_trace => "boolean",
3249             expand_wildcards => "enum",
3250             filter_path => "list",
3251             human => "boolean",
3252             ignore_unavailable => "boolean",
3253             master_timeout => "time",
3254             timeout => "time",
3255             wait_for_active_shards => "string",
3256             },
3257             },
3258              
3259             'indices.promote_data_stream' => {
3260             doc => "data-streams",
3261             method => "POST",
3262             parts => { name => {} },
3263             paths => [ [ { name => 2 }, "_data_stream", "_promote", "{name}" ] ],
3264             qs => {
3265             error_trace => "boolean",
3266             filter_path => "list",
3267             human => "boolean"
3268             },
3269             },
3270              
3271             'indices.put_alias' => {
3272             body => {},
3273             doc => "indices-aliases",
3274             method => "PUT",
3275             parts => { index => { multi => 1 }, name => {} },
3276             paths =>
3277             [ [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ] ],
3278             qs => {
3279             error_trace => "boolean",
3280             filter_path => "list",
3281             human => "boolean",
3282             master_timeout => "time",
3283             timeout => "time",
3284             },
3285             },
3286              
3287             'indices.put_index_template' => {
3288             body => { required => 1 },
3289             doc => "indices-templates",
3290             method => "PUT",
3291             parts => { name => {} },
3292             paths => [ [ { name => 1 }, "_index_template", "{name}" ] ],
3293             qs => {
3294             cause => "string",
3295             create => "boolean",
3296             error_trace => "boolean",
3297             filter_path => "list",
3298             human => "boolean",
3299             master_timeout => "time",
3300             },
3301             },
3302              
3303             'indices.put_mapping' => {
3304             body => { required => 1 },
3305             doc => "indices-put-mapping",
3306             method => "PUT",
3307             parts => { index => { multi => 1 }, type => {} },
3308             paths => [
3309             [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ],
3310             [ { index => 0 }, "{index}", "_mapping" ],
3311             [ { type => 1 }, "_mapping", "{type}" ],
3312             ],
3313             qs => {
3314             allow_no_indices => "boolean",
3315             error_trace => "boolean",
3316             expand_wildcards => "enum",
3317             filter_path => "list",
3318             human => "boolean",
3319             ignore_unavailable => "boolean",
3320             include_type_name => "boolean",
3321             master_timeout => "time",
3322             timeout => "time",
3323             write_index_only => "boolean",
3324             },
3325             },
3326              
3327             'indices.put_settings' => {
3328             body => { required => 1 },
3329             doc => "indices-update-settings",
3330             method => "PUT",
3331             parts => { index => { multi => 1 } },
3332             paths => [
3333             [ { index => 0 }, "{index}", "_settings" ],
3334             [ {}, "_settings" ]
3335             ],
3336             qs => {
3337             allow_no_indices => "boolean",
3338             error_trace => "boolean",
3339             expand_wildcards => "enum",
3340             filter_path => "list",
3341             flat_settings => "boolean",
3342             human => "boolean",
3343             ignore_unavailable => "boolean",
3344             master_timeout => "time",
3345             preserve_existing => "boolean",
3346             timeout => "time",
3347             },
3348             },
3349              
3350             'indices.put_template' => {
3351             body => { required => 1 },
3352             doc => "indices-templates",
3353             method => "PUT",
3354             parts => { name => {} },
3355             paths => [ [ { name => 1 }, "_template", "{name}" ] ],
3356             qs => {
3357             create => "boolean",
3358             error_trace => "boolean",
3359             filter_path => "list",
3360             human => "boolean",
3361             include_type_name => "boolean",
3362             master_timeout => "time",
3363             order => "number",
3364             },
3365             },
3366              
3367             'indices.recovery' => {
3368             doc => "indices-recovery",
3369             parts => { index => { multi => 1 } },
3370             paths => [
3371             [ { index => 0 }, "{index}", "_recovery" ],
3372             [ {}, "_recovery" ]
3373             ],
3374             qs => {
3375             active_only => "boolean",
3376             detailed => "boolean",
3377             error_trace => "boolean",
3378             filter_path => "list",
3379             human => "boolean",
3380             },
3381             },
3382              
3383             'indices.refresh' => {
3384             doc => "indices-refresh",
3385             method => "POST",
3386             parts => { index => { multi => 1 } },
3387             paths =>
3388             [ [ { index => 0 }, "{index}", "_refresh" ], [ {}, "_refresh" ] ],
3389             qs => {
3390             allow_no_indices => "boolean",
3391             error_trace => "boolean",
3392             expand_wildcards => "enum",
3393             filter_path => "list",
3394             human => "boolean",
3395             ignore_unavailable => "boolean",
3396             },
3397             },
3398              
3399             'indices.reload_search_analyzers' => {
3400             doc => "indices-reload-analyzers",
3401             parts => { index => { multi => 1 } },
3402             paths =>
3403             [ [ { index => 0 }, "{index}", "_reload_search_analyzers" ] ],
3404             qs => {
3405             allow_no_indices => "boolean",
3406             error_trace => "boolean",
3407             expand_wildcards => "enum",
3408             filter_path => "list",
3409             human => "boolean",
3410             ignore_unavailable => "boolean",
3411             },
3412             },
3413              
3414             'indices.resolve_index' => {
3415             doc => "indices-resolve-index-api",
3416             parts => { name => { multi => 1 } },
3417             paths => [ [ { name => 2 }, "_resolve", "index", "{name}" ] ],
3418             qs => {
3419             error_trace => "boolean",
3420             expand_wildcards => "enum",
3421             filter_path => "list",
3422             human => "boolean",
3423             },
3424             },
3425              
3426             'indices.rollover' => {
3427             body => {},
3428             doc => "indices-rollover-index",
3429             method => "POST",
3430             parts => { alias => {}, new_index => {} },
3431             paths => [
3432             [ { alias => 0, new_index => 2 }, "{alias}",
3433             "_rollover", "{new_index}",
3434             ],
3435             [ { alias => 0 }, "{alias}", "_rollover" ],
3436             ],
3437             qs => {
3438             dry_run => "boolean",
3439             error_trace => "boolean",
3440             filter_path => "list",
3441             human => "boolean",
3442             include_type_name => "boolean",
3443             master_timeout => "time",
3444             timeout => "time",
3445             wait_for_active_shards => "string",
3446             },
3447             },
3448              
3449             'indices.segments' => {
3450             doc => "indices-segments",
3451             parts => { index => { multi => 1 } },
3452             paths => [
3453             [ { index => 0 }, "{index}", "_segments" ],
3454             [ {}, "_segments" ]
3455             ],
3456             qs => {
3457             allow_no_indices => "boolean",
3458             error_trace => "boolean",
3459             expand_wildcards => "enum",
3460             filter_path => "list",
3461             human => "boolean",
3462             ignore_unavailable => "boolean",
3463             verbose => "boolean",
3464             },
3465             },
3466              
3467             'indices.shard_stores' => {
3468             doc => "indices-shards-stores",
3469             parts => { index => { multi => 1 } },
3470             paths => [
3471             [ { index => 0 }, "{index}", "_shard_stores" ],
3472             [ {}, "_shard_stores" ],
3473             ],
3474             qs => {
3475             allow_no_indices => "boolean",
3476             error_trace => "boolean",
3477             expand_wildcards => "enum",
3478             filter_path => "list",
3479             human => "boolean",
3480             ignore_unavailable => "boolean",
3481             status => "list",
3482             },
3483             },
3484              
3485             'indices.shrink' => {
3486             body => {},
3487             doc => "indices-shrink-index",
3488             method => "PUT",
3489             parts => { index => {}, target => {} },
3490             paths => [
3491             [ { index => 0, target => 2 }, "{index}", "_shrink", "{target}" ],
3492             ],
3493             qs => {
3494             copy_settings => "boolean",
3495             error_trace => "boolean",
3496             filter_path => "list",
3497             human => "boolean",
3498             master_timeout => "time",
3499             timeout => "time",
3500             wait_for_active_shards => "string",
3501             },
3502             },
3503              
3504             'indices.simulate_index_template' => {
3505             body => {},
3506             doc => "indices-templates",
3507             method => "POST",
3508             parts => { name => {} },
3509             paths => [
3510             [ { name => 2 }, "_index_template", "_simulate_index", "{name}" ],
3511             ],
3512             qs => {
3513             cause => "string",
3514             create => "boolean",
3515             error_trace => "boolean",
3516             filter_path => "list",
3517             human => "boolean",
3518             master_timeout => "time",
3519             },
3520             },
3521              
3522             'indices.simulate_template' => {
3523             body => {},
3524             doc => "indices-templates",
3525             method => "POST",
3526             parts => { name => {} },
3527             paths => [
3528             [ { name => 2 }, "_index_template", "_simulate", "{name}" ],
3529             [ {}, "_index_template", "_simulate" ],
3530             ],
3531             qs => {
3532             cause => "string",
3533             create => "boolean",
3534             error_trace => "boolean",
3535             filter_path => "list",
3536             human => "boolean",
3537             master_timeout => "time",
3538             },
3539             },
3540              
3541             'indices.split' => {
3542             body => {},
3543             doc => "indices-split-index",
3544             method => "PUT",
3545             parts => { index => {}, target => {} },
3546             paths => [
3547             [ { index => 0, target => 2 }, "{index}", "_split", "{target}" ],
3548             ],
3549             qs => {
3550             copy_settings => "boolean",
3551             error_trace => "boolean",
3552             filter_path => "list",
3553             human => "boolean",
3554             master_timeout => "time",
3555             timeout => "time",
3556             wait_for_active_shards => "string",
3557             },
3558             },
3559              
3560             'indices.stats' => {
3561             doc => "indices-stats",
3562             parts => { index => { multi => 1 }, metric => { multi => 1 } },
3563             paths => [
3564             [ { index => 0, metric => 2 }, "{index}", "_stats", "{metric}" ],
3565             [ { index => 0 }, "{index}", "_stats" ],
3566             [ { metric => 1 }, "_stats", "{metric}" ],
3567             [ {}, "_stats" ],
3568             ],
3569             qs => {
3570             completion_fields => "list",
3571             error_trace => "boolean",
3572             expand_wildcards => "enum",
3573             fielddata_fields => "list",
3574             fields => "list",
3575             filter_path => "list",
3576             forbid_closed_indices => "boolean",
3577             groups => "list",
3578             human => "boolean",
3579             include_segment_file_sizes => "boolean",
3580             include_unloaded_segments => "boolean",
3581             level => "enum",
3582             types => "list",
3583             },
3584             },
3585              
3586             'indices.unfreeze' => {
3587             doc => "unfreeze-index-api",
3588             method => "POST",
3589             parts => { index => {} },
3590             paths => [ [ { index => 0 }, "{index}", "_unfreeze" ] ],
3591             qs => {
3592             allow_no_indices => "boolean",
3593             error_trace => "boolean",
3594             expand_wildcards => "enum",
3595             filter_path => "list",
3596             human => "boolean",
3597             ignore_unavailable => "boolean",
3598             master_timeout => "time",
3599             timeout => "time",
3600             wait_for_active_shards => "string",
3601             },
3602             },
3603              
3604             'indices.update_aliases' => {
3605             body => { required => 1 },
3606             doc => "indices-aliases",
3607             method => "POST",
3608             parts => {},
3609             paths => [ [ {}, "_aliases" ] ],
3610             qs => {
3611             error_trace => "boolean",
3612             filter_path => "list",
3613             human => "boolean",
3614             master_timeout => "time",
3615             timeout => "time",
3616             },
3617             },
3618              
3619             'indices.upgrade' => {
3620             doc => "indices-upgrade",
3621             method => "POST",
3622             parts => { index => { multi => 1 } },
3623             paths =>
3624             [ [ { index => 0 }, "{index}", "_upgrade" ], [ {}, "_upgrade" ] ],
3625             qs => {
3626             allow_no_indices => "boolean",
3627             error_trace => "boolean",
3628             expand_wildcards => "enum",
3629             filter_path => "list",
3630             human => "boolean",
3631             ignore_unavailable => "boolean",
3632             only_ancient_segments => "boolean",
3633             wait_for_completion => "boolean",
3634             },
3635             },
3636              
3637             'indices.validate_query' => {
3638             body => {},
3639             doc => "search-validate",
3640             parts => { index => { multi => 1 }, type => { multi => 1 } },
3641             paths => [
3642             [ { index => 0, type => 1 }, "{index}",
3643             "{type}", "_validate",
3644             "query",
3645             ],
3646             [ { index => 0 }, "{index}", "_validate", "query" ],
3647             [ {}, "_validate", "query" ],
3648             ],
3649             qs => {
3650             all_shards => "boolean",
3651             allow_no_indices => "boolean",
3652             analyze_wildcard => "boolean",
3653             analyzer => "string",
3654             default_operator => "enum",
3655             df => "string",
3656             error_trace => "boolean",
3657             expand_wildcards => "enum",
3658             explain => "boolean",
3659             filter_path => "list",
3660             human => "boolean",
3661             ignore_unavailable => "boolean",
3662             lenient => "boolean",
3663             q => "string",
3664             rewrite => "boolean",
3665             },
3666             },
3667              
3668             'ingest.delete_pipeline' => {
3669             doc => "delete-pipeline-api",
3670             method => "DELETE",
3671             parts => { id => {} },
3672             paths => [ [ { id => 2 }, "_ingest", "pipeline", "{id}" ] ],
3673             qs => {
3674             error_trace => "boolean",
3675             filter_path => "list",
3676             human => "boolean",
3677             master_timeout => "time",
3678             timeout => "time",
3679             },
3680             },
3681              
3682             'ingest.geo_ip_stats' => {
3683             doc => "geoip-stats-api",
3684             parts => {},
3685             paths => [ [ {}, "_ingest", "geoip", "stats" ] ],
3686             qs => {
3687             error_trace => "boolean",
3688             filter_path => "list",
3689             human => "boolean"
3690             },
3691             },
3692              
3693             'ingest.get_pipeline' => {
3694             doc => "get-pipeline-api",
3695             parts => { id => {} },
3696             paths => [
3697             [ { id => 2 }, "_ingest", "pipeline", "{id}" ],
3698             [ {}, "_ingest", "pipeline" ],
3699             ],
3700             qs => {
3701             error_trace => "boolean",
3702             filter_path => "list",
3703             human => "boolean",
3704             master_timeout => "time",
3705             summary => "boolean",
3706             },
3707             },
3708              
3709             'ingest.processor_grok' => {
3710             doc => "",
3711             parts => {},
3712             paths => [ [ {}, "_ingest", "processor", "grok" ] ],
3713             qs => {
3714             error_trace => "boolean",
3715             filter_path => "list",
3716             human => "boolean"
3717             },
3718             },
3719              
3720             'ingest.put_pipeline' => {
3721             body => { required => 1 },
3722             doc => "put-pipeline-api",
3723             method => "PUT",
3724             parts => { id => {} },
3725             paths => [ [ { id => 2 }, "_ingest", "pipeline", "{id}" ] ],
3726             qs => {
3727             error_trace => "boolean",
3728             filter_path => "list",
3729             human => "boolean",
3730             master_timeout => "time",
3731             timeout => "time",
3732             },
3733             },
3734              
3735             'ingest.simulate' => {
3736             body => { required => 1 },
3737             doc => "simulate-pipeline-api",
3738             parts => { id => {} },
3739             paths => [
3740             [ { id => 2 }, "_ingest", "pipeline", "{id}", "_simulate" ],
3741             [ {}, "_ingest", "pipeline", "_simulate" ],
3742             ],
3743             qs => {
3744             error_trace => "boolean",
3745             filter_path => "list",
3746             human => "boolean",
3747             verbose => "boolean",
3748             },
3749             },
3750              
3751             'license.delete' => {
3752             doc => "delete-license",
3753             method => "DELETE",
3754             parts => {},
3755             paths => [ [ {}, "_license" ] ],
3756             qs => {
3757             error_trace => "boolean",
3758             filter_path => "list",
3759             human => "boolean"
3760             },
3761             },
3762              
3763             'license.get' => {
3764             doc => "get-license",
3765             parts => {},
3766             paths => [ [ {}, "_license" ] ],
3767             qs => {
3768             accept_enterprise => "boolean",
3769             error_trace => "boolean",
3770             filter_path => "list",
3771             human => "boolean",
3772             local => "boolean",
3773             },
3774             },
3775              
3776             'license.get_basic_status' => {
3777             doc => "get-basic-status",
3778             parts => {},
3779             paths => [ [ {}, "_license", "basic_status" ] ],
3780             qs => {
3781             error_trace => "boolean",
3782             filter_path => "list",
3783             human => "boolean"
3784             },
3785             },
3786              
3787             'license.get_trial_status' => {
3788             doc => "get-trial-status",
3789             parts => {},
3790             paths => [ [ {}, "_license", "trial_status" ] ],
3791             qs => {
3792             error_trace => "boolean",
3793             filter_path => "list",
3794             human => "boolean"
3795             },
3796             },
3797              
3798             'license.post' => {
3799             body => {},
3800             doc => "update-license",
3801             method => "PUT",
3802             parts => {},
3803             paths => [ [ {}, "_license" ] ],
3804             qs => {
3805             acknowledge => "boolean",
3806             error_trace => "boolean",
3807             filter_path => "list",
3808             human => "boolean",
3809             },
3810             },
3811              
3812             'license.post_start_basic' => {
3813             doc => "start-basic",
3814             method => "POST",
3815             parts => {},
3816             paths => [ [ {}, "_license", "start_basic" ] ],
3817             qs => {
3818             acknowledge => "boolean",
3819             error_trace => "boolean",
3820             filter_path => "list",
3821             human => "boolean",
3822             },
3823             },
3824              
3825             'license.post_start_trial' => {
3826             doc => "start-trial",
3827             method => "POST",
3828             parts => {},
3829             paths => [ [ {}, "_license", "start_trial" ] ],
3830             qs => {
3831             acknowledge => "boolean",
3832             error_trace => "boolean",
3833             filter_path => "list",
3834             human => "boolean",
3835             type => "string",
3836             },
3837             },
3838              
3839             'logstash.delete_pipeline' => {
3840             doc => "logstash-api-delete-pipeline",
3841             method => "DELETE",
3842             parts => { id => {} },
3843             paths => [ [ { id => 2 }, "_logstash", "pipeline", "{id}" ] ],
3844             qs => {
3845             error_trace => "boolean",
3846             filter_path => "list",
3847             human => "boolean"
3848             },
3849             },
3850              
3851             'logstash.get_pipeline' => {
3852             doc => "logstash-api-get-pipeline",
3853             parts => { id => {} },
3854             paths => [ [ { id => 2 }, "_logstash", "pipeline", "{id}" ] ],
3855             qs => {
3856             error_trace => "boolean",
3857             filter_path => "list",
3858             human => "boolean"
3859             },
3860             },
3861              
3862             'logstash.put_pipeline' => {
3863             body => { required => 1 },
3864             doc => "logstash-api-put-pipeline",
3865             method => "PUT",
3866             parts => { id => {} },
3867             paths => [ [ { id => 2 }, "_logstash", "pipeline", "{id}" ] ],
3868             qs => {
3869             error_trace => "boolean",
3870             filter_path => "list",
3871             human => "boolean"
3872             },
3873             },
3874              
3875             'migration.deprecations' => {
3876             doc => "migration-api-deprecation",
3877             parts => { index => {} },
3878             paths => [
3879             [ { index => 0 }, "{index}", "_migration", "deprecations" ],
3880             [ {}, "_migration", "deprecations" ],
3881             ],
3882             qs => {
3883             error_trace => "boolean",
3884             filter_path => "list",
3885             human => "boolean"
3886             },
3887             },
3888              
3889             'ml.close_job' => {
3890             body => {},
3891             doc => "ml-close-job",
3892             method => "POST",
3893             parts => { job_id => {} },
3894             paths => [
3895             [ { job_id => 2 }, "_ml",
3896             "anomaly_detectors", "{job_id}",
3897             "_close",
3898             ],
3899             ],
3900             qs => {
3901             allow_no_jobs => "boolean",
3902             allow_no_match => "boolean",
3903             error_trace => "boolean",
3904             filter_path => "list",
3905             force => "boolean",
3906             human => "boolean",
3907             timeout => "time",
3908             },
3909             },
3910              
3911             'ml.delete_calendar' => {
3912             doc => "ml-delete-calendar",
3913             method => "DELETE",
3914             parts => { calendar_id => {} },
3915             paths =>
3916             [ [ { calendar_id => 2 }, "_ml", "calendars", "{calendar_id}" ] ],
3917             qs => {
3918             error_trace => "boolean",
3919             filter_path => "list",
3920             human => "boolean"
3921             },
3922             },
3923              
3924             'ml.delete_calendar_event' => {
3925             doc => "ml-delete-calendar-event",
3926             method => "DELETE",
3927             parts => { calendar_id => {}, event_id => {} },
3928             paths => [
3929             [ { calendar_id => 2, event_id => 4 }, "_ml",
3930             "calendars", "{calendar_id}",
3931             "events", "{event_id}",
3932             ],
3933             ],
3934             qs => {
3935             error_trace => "boolean",
3936             filter_path => "list",
3937             human => "boolean"
3938             },
3939             },
3940              
3941             'ml.delete_calendar_job' => {
3942             doc => "ml-delete-calendar-job",
3943             method => "DELETE",
3944             parts => { calendar_id => {}, job_id => {} },
3945             paths => [
3946             [ { calendar_id => 2, job_id => 4 },
3947             "_ml", "calendars", "{calendar_id}", "jobs", "{job_id}",
3948             ],
3949             ],
3950             qs => {
3951             error_trace => "boolean",
3952             filter_path => "list",
3953             human => "boolean"
3954             },
3955             },
3956              
3957             'ml.delete_data_frame_analytics' => {
3958             doc => "delete-dfanalytics",
3959             method => "DELETE",
3960             parts => { id => {} },
3961             paths =>
3962             [ [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}" ] ],
3963             qs => {
3964             error_trace => "boolean",
3965             filter_path => "list",
3966             force => "boolean",
3967             human => "boolean",
3968             timeout => "time",
3969             },
3970             },
3971              
3972             'ml.delete_datafeed' => {
3973             doc => "ml-delete-datafeed",
3974             method => "DELETE",
3975             parts => { datafeed_id => {} },
3976             paths =>
3977             [ [ { datafeed_id => 2 }, "_ml", "datafeeds", "{datafeed_id}" ] ],
3978             qs => {
3979             error_trace => "boolean",
3980             filter_path => "list",
3981             force => "boolean",
3982             human => "boolean",
3983             },
3984             },
3985              
3986             'ml.delete_expired_data' => {
3987             body => {},
3988             doc => "ml-delete-expired-data",
3989             method => "DELETE",
3990             parts => { job_id => {} },
3991             paths => [
3992             [ { job_id => 2 }, "_ml", "_delete_expired_data", "{job_id}" ],
3993             [ {}, "_ml", "_delete_expired_data" ],
3994             ],
3995             qs => {
3996             error_trace => "boolean",
3997             filter_path => "list",
3998             human => "boolean",
3999             requests_per_second => "number",
4000             timeout => "time",
4001             },
4002             },
4003              
4004             'ml.delete_filter' => {
4005             doc => "ml-delete-filter",
4006             method => "DELETE",
4007             parts => { filter_id => {} },
4008             paths => [ [ { filter_id => 2 }, "_ml", "filters", "{filter_id}" ] ],
4009             qs => {
4010             error_trace => "boolean",
4011             filter_path => "list",
4012             human => "boolean"
4013             },
4014             },
4015              
4016             'ml.delete_forecast' => {
4017             doc => "ml-delete-forecast",
4018             method => "DELETE",
4019             parts => { forecast_id => {}, job_id => {} },
4020             paths => [
4021             [ { forecast_id => 4, job_id => 2 }, "_ml",
4022             "anomaly_detectors", "{job_id}",
4023             "_forecast", "{forecast_id}",
4024             ],
4025             [ { job_id => 2 }, "_ml",
4026             "anomaly_detectors", "{job_id}",
4027             "_forecast",
4028             ],
4029             ],
4030             qs => {
4031             allow_no_forecasts => "boolean",
4032             error_trace => "boolean",
4033             filter_path => "list",
4034             human => "boolean",
4035             timeout => "time",
4036             },
4037             },
4038              
4039             'ml.delete_job' => {
4040             doc => "ml-delete-job",
4041             method => "DELETE",
4042             parts => { job_id => {} },
4043             paths =>
4044             [ [ { job_id => 2 }, "_ml", "anomaly_detectors", "{job_id}" ] ],
4045             qs => {
4046             error_trace => "boolean",
4047             filter_path => "list",
4048             force => "boolean",
4049             human => "boolean",
4050             wait_for_completion => "boolean",
4051             },
4052             },
4053              
4054             'ml.delete_model_snapshot' => {
4055             doc => "ml-delete-snapshot",
4056             method => "DELETE",
4057             parts => { job_id => {}, snapshot_id => {} },
4058             paths => [
4059             [ { job_id => 2, snapshot_id => 4 }, "_ml",
4060             "anomaly_detectors", "{job_id}",
4061             "model_snapshots", "{snapshot_id}",
4062             ],
4063             ],
4064             qs => {
4065             error_trace => "boolean",
4066             filter_path => "list",
4067             human => "boolean"
4068             },
4069             },
4070              
4071             'ml.delete_trained_model' => {
4072             doc => "delete-trained-models",
4073             method => "DELETE",
4074             parts => { model_id => {} },
4075             paths =>
4076             [ [ { model_id => 2 }, "_ml", "trained_models", "{model_id}" ] ],
4077             qs => {
4078             error_trace => "boolean",
4079             filter_path => "list",
4080             human => "boolean"
4081             },
4082             },
4083              
4084             'ml.delete_trained_model_alias' => {
4085             doc => "delete-trained-models-aliases",
4086             method => "DELETE",
4087             parts => { model_alias => {}, model_id => {} },
4088             paths => [
4089             [ { model_alias => 4, model_id => 2 }, "_ml",
4090             "trained_models", "{model_id}",
4091             "model_aliases", "{model_alias}",
4092             ],
4093             ],
4094             qs => {
4095             error_trace => "boolean",
4096             filter_path => "list",
4097             human => "boolean"
4098             },
4099             },
4100              
4101             'ml.estimate_model_memory' => {
4102             body => { required => 1 },
4103             doc => "ml-apis",
4104             method => "POST",
4105             parts => {},
4106             paths =>
4107             [ [ {}, "_ml", "anomaly_detectors", "_estimate_model_memory" ] ],
4108             qs => {
4109             error_trace => "boolean",
4110             filter_path => "list",
4111             human => "boolean"
4112             },
4113             },
4114              
4115             'ml.evaluate_data_frame' => {
4116             body => { required => 1 },
4117             doc => "evaluate-dfanalytics",
4118             method => "POST",
4119             parts => {},
4120             paths => [ [ {}, "_ml", "data_frame", "_evaluate" ] ],
4121             qs => {
4122             error_trace => "boolean",
4123             filter_path => "list",
4124             human => "boolean"
4125             },
4126             },
4127              
4128             'ml.explain_data_frame_analytics' => {
4129             body => {},
4130             doc => "explain-dfanalytics",
4131             parts => { id => {} },
4132             paths => [
4133             [ { id => 3 }, "_ml", "data_frame", "analytics",
4134             "{id}", "_explain"
4135             ],
4136             [ {}, "_ml", "data_frame", "analytics", "_explain" ],
4137             ],
4138             qs => {
4139             error_trace => "boolean",
4140             filter_path => "list",
4141             human => "boolean"
4142             },
4143             },
4144              
4145             'ml.find_file_structure' => {
4146             body => { required => 1 },
4147             doc => "find-structure",
4148             method => "POST",
4149             parts => {},
4150             paths => [ [ {}, "_ml", "find_file_structure" ] ],
4151             qs => {
4152             charset => "string",
4153             column_names => "list",
4154             delimiter => "string",
4155             error_trace => "boolean",
4156             explain => "boolean",
4157             filter_path => "list",
4158             format => "enum",
4159             grok_pattern => "string",
4160             has_header_row => "boolean",
4161             human => "boolean",
4162             line_merge_size_limit => "int",
4163             lines_to_sample => "int",
4164             quote => "string",
4165             should_trim_fields => "boolean",
4166             timeout => "time",
4167             timestamp_field => "string",
4168             timestamp_format => "string",
4169             },
4170             serialize => "bulk",
4171             },
4172              
4173             'ml.flush_job' => {
4174             body => {},
4175             doc => "ml-flush-job",
4176             method => "POST",
4177             parts => { job_id => {} },
4178             paths => [
4179             [ { job_id => 2 }, "_ml",
4180             "anomaly_detectors", "{job_id}",
4181             "_flush",
4182             ],
4183             ],
4184             qs => {
4185             advance_time => "string",
4186             calc_interim => "boolean",
4187             end => "string",
4188             error_trace => "boolean",
4189             filter_path => "list",
4190             human => "boolean",
4191             skip_time => "string",
4192             start => "string",
4193             },
4194             },
4195              
4196             'ml.forecast' => {
4197             doc => "ml-forecast",
4198             method => "POST",
4199             parts => { job_id => {} },
4200             paths => [
4201             [ { job_id => 2 }, "_ml",
4202             "anomaly_detectors", "{job_id}",
4203             "_forecast",
4204             ],
4205             ],
4206             qs => {
4207             duration => "time",
4208             error_trace => "boolean",
4209             expires_in => "time",
4210             filter_path => "list",
4211             human => "boolean",
4212             max_model_memory => "string",
4213             },
4214             },
4215              
4216             'ml.get_buckets' => {
4217             body => {},
4218             doc => "ml-get-bucket",
4219             parts => { job_id => {}, timestamp => {} },
4220             paths => [
4221             [ { job_id => 2, timestamp => 5 }, "_ml",
4222             "anomaly_detectors", "{job_id}",
4223             "results", "buckets",
4224             "{timestamp}",
4225             ],
4226             [ { job_id => 2 }, "_ml",
4227             "anomaly_detectors", "{job_id}",
4228             "results", "buckets",
4229             ],
4230             ],
4231             qs => {
4232             anomaly_score => "double",
4233             desc => "boolean",
4234             end => "string",
4235             error_trace => "boolean",
4236             exclude_interim => "boolean",
4237             expand => "boolean",
4238             filter_path => "list",
4239             from => "int",
4240             human => "boolean",
4241             size => "int",
4242             sort => "string",
4243             start => "string",
4244             },
4245             },
4246              
4247             'ml.get_calendar_events' => {
4248             doc => "ml-get-calendar-event",
4249             parts => { calendar_id => {} },
4250             paths => [
4251             [ { calendar_id => 2 }, "_ml",
4252             "calendars", "{calendar_id}",
4253             "events",
4254             ],
4255             ],
4256             qs => {
4257             end => "time",
4258             error_trace => "boolean",
4259             filter_path => "list",
4260             from => "int",
4261             human => "boolean",
4262             job_id => "string",
4263             size => "int",
4264             start => "string",
4265             },
4266             },
4267              
4268             'ml.get_calendars' => {
4269             body => {},
4270             doc => "ml-get-calendar",
4271             parts => { calendar_id => {} },
4272             paths => [
4273             [ { calendar_id => 2 }, "_ml", "calendars", "{calendar_id}" ],
4274             [ {}, "_ml", "calendars" ],
4275             ],
4276             qs => {
4277             error_trace => "boolean",
4278             filter_path => "list",
4279             from => "int",
4280             human => "boolean",
4281             size => "int",
4282             },
4283             },
4284              
4285             'ml.get_categories' => {
4286             body => {},
4287             doc => "ml-get-category",
4288             parts => { category_id => {}, job_id => {} },
4289             paths => [
4290             [ { category_id => 5, job_id => 2 }, "_ml",
4291             "anomaly_detectors", "{job_id}",
4292             "results", "categories",
4293             "{category_id}",
4294             ],
4295             [ { job_id => 2 }, "_ml",
4296             "anomaly_detectors", "{job_id}",
4297             "results", "categories",
4298             ],
4299             ],
4300             qs => {
4301             error_trace => "boolean",
4302             filter_path => "list",
4303             from => "int",
4304             human => "boolean",
4305             partition_field_value => "string",
4306             size => "int",
4307             },
4308             },
4309              
4310             'ml.get_data_frame_analytics' => {
4311             doc => "get-dfanalytics",
4312             parts => { id => {} },
4313             paths => [
4314             [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}" ],
4315             [ {}, "_ml", "data_frame", "analytics" ],
4316             ],
4317             qs => {
4318             allow_no_match => "boolean",
4319             error_trace => "boolean",
4320             exclude_generated => "boolean",
4321             filter_path => "list",
4322             from => "int",
4323             human => "boolean",
4324             size => "int",
4325             },
4326             },
4327              
4328             'ml.get_data_frame_analytics_stats' => {
4329             doc => "get-dfanalytics-stats",
4330             parts => { id => {} },
4331             paths => [
4332             [ { id => 3 }, "_ml", "data_frame", "analytics",
4333             "{id}", "_stats"
4334             ],
4335             [ {}, "_ml", "data_frame", "analytics", "_stats" ],
4336             ],
4337             qs => {
4338             allow_no_match => "boolean",
4339             error_trace => "boolean",
4340             filter_path => "list",
4341             from => "int",
4342             human => "boolean",
4343             size => "int",
4344             verbose => "boolean",
4345             },
4346             },
4347              
4348             'ml.get_datafeed_stats' => {
4349             doc => "ml-get-datafeed-stats",
4350             parts => { datafeed_id => {} },
4351             paths => [
4352             [ { datafeed_id => 2 }, "_ml",
4353             "datafeeds", "{datafeed_id}",
4354             "_stats",
4355             ],
4356             [ {}, "_ml", "datafeeds", "_stats" ],
4357             ],
4358             qs => {
4359             allow_no_datafeeds => "boolean",
4360             allow_no_match => "boolean",
4361             error_trace => "boolean",
4362             filter_path => "list",
4363             human => "boolean",
4364             },
4365             },
4366              
4367             'ml.get_datafeeds' => {
4368             doc => "ml-get-datafeed",
4369             parts => { datafeed_id => {} },
4370             paths => [
4371             [ { datafeed_id => 2 }, "_ml", "datafeeds", "{datafeed_id}" ],
4372             [ {}, "_ml", "datafeeds" ],
4373             ],
4374             qs => {
4375             allow_no_datafeeds => "boolean",
4376             allow_no_match => "boolean",
4377             error_trace => "boolean",
4378             exclude_generated => "boolean",
4379             filter_path => "list",
4380             human => "boolean",
4381             },
4382             },
4383              
4384             'ml.get_filters' => {
4385             doc => "ml-get-filter",
4386             parts => { filter_id => {} },
4387             paths => [
4388             [ { filter_id => 2 }, "_ml", "filters", "{filter_id}" ],
4389             [ {}, "_ml", "filters" ],
4390             ],
4391             qs => {
4392             error_trace => "boolean",
4393             filter_path => "list",
4394             from => "int",
4395             human => "boolean",
4396             size => "int",
4397             },
4398             },
4399              
4400             'ml.get_influencers' => {
4401             body => {},
4402             doc => "ml-get-influencer",
4403             parts => { job_id => {} },
4404             paths => [
4405             [ { job_id => 2 }, "_ml",
4406             "anomaly_detectors", "{job_id}",
4407             "results", "influencers",
4408             ],
4409             ],
4410             qs => {
4411             desc => "boolean",
4412             end => "string",
4413             error_trace => "boolean",
4414             exclude_interim => "boolean",
4415             filter_path => "list",
4416             from => "int",
4417             human => "boolean",
4418             influencer_score => "double",
4419             size => "int",
4420             sort => "string",
4421             start => "string",
4422             },
4423             },
4424              
4425             'ml.get_job_stats' => {
4426             doc => "ml-get-job-stats",
4427             parts => { job_id => {} },
4428             paths => [
4429             [ { job_id => 2 }, "_ml",
4430             "anomaly_detectors", "{job_id}",
4431             "_stats",
4432             ],
4433             [ {}, "_ml", "anomaly_detectors", "_stats" ],
4434             ],
4435             qs => {
4436             allow_no_jobs => "boolean",
4437             allow_no_match => "boolean",
4438             error_trace => "boolean",
4439             filter_path => "list",
4440             human => "boolean",
4441             },
4442             },
4443              
4444             'ml.get_jobs' => {
4445             doc => "ml-get-job",
4446             parts => { job_id => {} },
4447             paths => [
4448             [ { job_id => 2 }, "_ml", "anomaly_detectors", "{job_id}" ],
4449             [ {}, "_ml", "anomaly_detectors" ],
4450             ],
4451             qs => {
4452             allow_no_jobs => "boolean",
4453             allow_no_match => "boolean",
4454             error_trace => "boolean",
4455             exclude_generated => "boolean",
4456             filter_path => "list",
4457             human => "boolean",
4458             },
4459             },
4460              
4461             'ml.get_model_snapshots' => {
4462             body => {},
4463             doc => "ml-get-snapshot",
4464             parts => { job_id => {}, snapshot_id => {} },
4465             paths => [
4466             [ { job_id => 2, snapshot_id => 4 }, "_ml",
4467             "anomaly_detectors", "{job_id}",
4468             "model_snapshots", "{snapshot_id}",
4469             ],
4470             [ { job_id => 2 }, "_ml",
4471             "anomaly_detectors", "{job_id}",
4472             "model_snapshots",
4473             ],
4474             ],
4475             qs => {
4476             desc => "boolean",
4477             end => "time",
4478             error_trace => "boolean",
4479             filter_path => "list",
4480             from => "int",
4481             human => "boolean",
4482             size => "int",
4483             sort => "string",
4484             start => "time",
4485             },
4486             },
4487              
4488             'ml.get_overall_buckets' => {
4489             body => {},
4490             doc => "ml-get-overall-buckets",
4491             parts => { job_id => {} },
4492             paths => [
4493             [ { job_id => 2 }, "_ml",
4494             "anomaly_detectors", "{job_id}",
4495             "results", "overall_buckets",
4496             ],
4497             ],
4498             qs => {
4499             allow_no_jobs => "boolean",
4500             allow_no_match => "boolean",
4501             bucket_span => "string",
4502             end => "string",
4503             error_trace => "boolean",
4504             exclude_interim => "boolean",
4505             filter_path => "list",
4506             human => "boolean",
4507             overall_score => "double",
4508             start => "string",
4509             top_n => "int",
4510             },
4511             },
4512              
4513             'ml.get_records' => {
4514             body => {},
4515             doc => "ml-get-record",
4516             parts => { job_id => {} },
4517             paths => [
4518             [ { job_id => 2 }, "_ml",
4519             "anomaly_detectors", "{job_id}",
4520             "results", "records",
4521             ],
4522             ],
4523             qs => {
4524             desc => "boolean",
4525             end => "string",
4526             error_trace => "boolean",
4527             exclude_interim => "boolean",
4528             filter_path => "list",
4529             from => "int",
4530             human => "boolean",
4531             record_score => "double",
4532             size => "int",
4533             sort => "string",
4534             start => "string",
4535             },
4536             },
4537              
4538             'ml.get_trained_models' => {
4539             doc => "get-trained-models",
4540             parts => { model_id => {} },
4541             paths => [
4542             [ { model_id => 2 }, "_ml", "trained_models", "{model_id}" ],
4543             [ {}, "_ml", "trained_models" ],
4544             ],
4545             qs => {
4546             allow_no_match => "boolean",
4547             decompress_definition => "boolean",
4548             error_trace => "boolean",
4549             exclude_generated => "boolean",
4550             filter_path => "list",
4551             from => "int",
4552             human => "boolean",
4553             include => "string",
4554             include_model_definition => "boolean",
4555             size => "int",
4556             tags => "list",
4557             },
4558             },
4559              
4560             'ml.get_trained_models_stats' => {
4561             doc => "get-trained-models-stats",
4562             parts => { model_id => {} },
4563             paths => [
4564             [ { model_id => 2 }, "_ml",
4565             "trained_models", "{model_id}",
4566             "_stats",
4567             ],
4568             [ {}, "_ml", "trained_models", "_stats" ],
4569             ],
4570             qs => {
4571             allow_no_match => "boolean",
4572             error_trace => "boolean",
4573             filter_path => "list",
4574             from => "int",
4575             human => "boolean",
4576             size => "int",
4577             },
4578             },
4579              
4580             'ml.info' => {
4581             doc => "get-ml-info",
4582             parts => {},
4583             paths => [ [ {}, "_ml", "info" ] ],
4584             qs => {
4585             error_trace => "boolean",
4586             filter_path => "list",
4587             human => "boolean"
4588             },
4589             },
4590              
4591             'ml.open_job' => {
4592             doc => "ml-open-job",
4593             method => "POST",
4594             parts => { job_id => {} },
4595             paths => [
4596             [ { job_id => 2 }, "_ml",
4597             "anomaly_detectors", "{job_id}",
4598             "_open"
4599             ],
4600             ],
4601             qs => {
4602             error_trace => "boolean",
4603             filter_path => "list",
4604             human => "boolean"
4605             },
4606             },
4607              
4608             'ml.post_calendar_events' => {
4609             body => { required => 1 },
4610             doc => "ml-post-calendar-event",
4611             method => "POST",
4612             parts => { calendar_id => {} },
4613             paths => [
4614             [ { calendar_id => 2 }, "_ml",
4615             "calendars", "{calendar_id}",
4616             "events",
4617             ],
4618             ],
4619             qs => {
4620             error_trace => "boolean",
4621             filter_path => "list",
4622             human => "boolean"
4623             },
4624             },
4625              
4626             'ml.post_data' => {
4627             body => { required => 1 },
4628             doc => "ml-post-data",
4629             method => "POST",
4630             parts => { job_id => {} },
4631             paths => [
4632             [ { job_id => 2 }, "_ml",
4633             "anomaly_detectors", "{job_id}",
4634             "_data"
4635             ],
4636             ],
4637             qs => {
4638             error_trace => "boolean",
4639             filter_path => "list",
4640             human => "boolean",
4641             reset_end => "string",
4642             reset_start => "string",
4643             },
4644             serialize => "bulk",
4645             },
4646              
4647             'ml.preview_data_frame_analytics' => {
4648             body => {},
4649             doc => "preview-dfanalytics",
4650             parts => { id => {} },
4651             paths => [
4652             [ { id => 3 }, "_ml", "data_frame", "analytics",
4653             "{id}", "_preview"
4654             ],
4655             [ {}, "_ml", "data_frame", "analytics", "_preview" ],
4656             ],
4657             qs => {
4658             error_trace => "boolean",
4659             filter_path => "list",
4660             human => "boolean"
4661             },
4662             },
4663              
4664             'ml.preview_datafeed' => {
4665             body => {},
4666             doc => "ml-preview-datafeed",
4667             parts => { datafeed_id => {} },
4668             paths => [
4669             [ { datafeed_id => 2 }, "_ml",
4670             "datafeeds", "{datafeed_id}",
4671             "_preview",
4672             ],
4673             [ {}, "_ml", "datafeeds", "_preview" ],
4674             ],
4675             qs => {
4676             error_trace => "boolean",
4677             filter_path => "list",
4678             human => "boolean"
4679             },
4680             },
4681              
4682             'ml.put_calendar' => {
4683             body => {},
4684             doc => "ml-put-calendar",
4685             method => "PUT",
4686             parts => { calendar_id => {} },
4687             paths =>
4688             [ [ { calendar_id => 2 }, "_ml", "calendars", "{calendar_id}" ] ],
4689             qs => {
4690             error_trace => "boolean",
4691             filter_path => "list",
4692             human => "boolean"
4693             },
4694             },
4695              
4696             'ml.put_calendar_job' => {
4697             doc => "ml-put-calendar-job",
4698             method => "PUT",
4699             parts => { calendar_id => {}, job_id => {} },
4700             paths => [
4701             [ { calendar_id => 2, job_id => 4 },
4702             "_ml", "calendars", "{calendar_id}", "jobs", "{job_id}",
4703             ],
4704             ],
4705             qs => {
4706             error_trace => "boolean",
4707             filter_path => "list",
4708             human => "boolean"
4709             },
4710             },
4711              
4712             'ml.put_data_frame_analytics' => {
4713             body => { required => 1 },
4714             doc => "put-dfanalytics",
4715             method => "PUT",
4716             parts => { id => {} },
4717             paths =>
4718             [ [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}" ] ],
4719             qs => {
4720             error_trace => "boolean",
4721             filter_path => "list",
4722             human => "boolean"
4723             },
4724             },
4725              
4726             'ml.put_datafeed' => {
4727             body => { required => 1 },
4728             doc => "ml-put-datafeed",
4729             method => "PUT",
4730             parts => { datafeed_id => {} },
4731             paths =>
4732             [ [ { datafeed_id => 2 }, "_ml", "datafeeds", "{datafeed_id}" ] ],
4733             qs => {
4734             allow_no_indices => "boolean",
4735             error_trace => "boolean",
4736             expand_wildcards => "enum",
4737             filter_path => "list",
4738             human => "boolean",
4739             ignore_throttled => "boolean",
4740             ignore_unavailable => "boolean",
4741             },
4742             },
4743              
4744             'ml.put_filter' => {
4745             body => { required => 1 },
4746             doc => "ml-put-filter",
4747             method => "PUT",
4748             parts => { filter_id => {} },
4749             paths => [ [ { filter_id => 2 }, "_ml", "filters", "{filter_id}" ] ],
4750             qs => {
4751             error_trace => "boolean",
4752             filter_path => "list",
4753             human => "boolean"
4754             },
4755             },
4756              
4757             'ml.put_job' => {
4758             body => { required => 1 },
4759             doc => "ml-put-job",
4760             method => "PUT",
4761             parts => { job_id => {} },
4762             paths =>
4763             [ [ { job_id => 2 }, "_ml", "anomaly_detectors", "{job_id}" ] ],
4764             qs => {
4765             allow_no_indices => "boolean",
4766             error_trace => "boolean",
4767             expand_wildcards => "enum",
4768             filter_path => "list",
4769             human => "boolean",
4770             ignore_throttled => "boolean",
4771             ignore_unavailable => "boolean",
4772             },
4773             },
4774              
4775             'ml.put_trained_model' => {
4776             body => { required => 1 },
4777             doc => "put-trained-models",
4778             method => "PUT",
4779             parts => { model_id => {} },
4780             paths =>
4781             [ [ { model_id => 2 }, "_ml", "trained_models", "{model_id}" ] ],
4782             qs => {
4783             error_trace => "boolean",
4784             filter_path => "list",
4785             human => "boolean"
4786             },
4787             },
4788              
4789             'ml.put_trained_model_alias' => {
4790             doc => "put-trained-models-aliases",
4791             method => "PUT",
4792             parts => { model_alias => {}, model_id => {} },
4793             paths => [
4794             [ { model_alias => 4, model_id => 2 }, "_ml",
4795             "trained_models", "{model_id}",
4796             "model_aliases", "{model_alias}",
4797             ],
4798             ],
4799             qs => {
4800             error_trace => "boolean",
4801             filter_path => "list",
4802             human => "boolean",
4803             reassign => "boolean",
4804             },
4805             },
4806              
4807             'ml.reset_job' => {
4808             doc => "ml-reset-job",
4809             method => "POST",
4810             parts => { job_id => {} },
4811             paths => [
4812             [ { job_id => 2 }, "_ml",
4813             "anomaly_detectors", "{job_id}",
4814             "_reset",
4815             ],
4816             ],
4817             qs => {
4818             error_trace => "boolean",
4819             filter_path => "list",
4820             human => "boolean",
4821             wait_for_completion => "boolean",
4822             },
4823             },
4824              
4825             'ml.revert_model_snapshot' => {
4826             body => {},
4827             doc => "ml-revert-snapshot",
4828             method => "POST",
4829             parts => { job_id => {}, snapshot_id => {} },
4830             paths => [
4831             [ { job_id => 2, snapshot_id => 4 }, "_ml",
4832             "anomaly_detectors", "{job_id}",
4833             "model_snapshots", "{snapshot_id}",
4834             "_revert",
4835             ],
4836             ],
4837             qs => {
4838             delete_intervening_results => "boolean",
4839             error_trace => "boolean",
4840             filter_path => "list",
4841             human => "boolean",
4842             },
4843             },
4844              
4845             'ml.set_upgrade_mode' => {
4846             doc => "ml-set-upgrade-mode",
4847             method => "POST",
4848             parts => {},
4849             paths => [ [ {}, "_ml", "set_upgrade_mode" ] ],
4850             qs => {
4851             enabled => "boolean",
4852             error_trace => "boolean",
4853             filter_path => "list",
4854             human => "boolean",
4855             timeout => "time",
4856             },
4857             },
4858              
4859             'ml.start_data_frame_analytics' => {
4860             body => {},
4861             doc => "start-dfanalytics",
4862             method => "POST",
4863             parts => { id => {} },
4864             paths => [
4865             [ { id => 3 }, "_ml", "data_frame", "analytics",
4866             "{id}", "_start"
4867             ],
4868             ],
4869             qs => {
4870             error_trace => "boolean",
4871             filter_path => "list",
4872             human => "boolean",
4873             timeout => "time",
4874             },
4875             },
4876              
4877             'ml.start_datafeed' => {
4878             body => {},
4879             doc => "ml-start-datafeed",
4880             method => "POST",
4881             parts => { datafeed_id => {} },
4882             paths => [
4883             [ { datafeed_id => 2 }, "_ml",
4884             "datafeeds", "{datafeed_id}",
4885             "_start",
4886             ],
4887             ],
4888             qs => {
4889             end => "string",
4890             error_trace => "boolean",
4891             filter_path => "list",
4892             human => "boolean",
4893             start => "string",
4894             timeout => "time",
4895             },
4896             },
4897              
4898             'ml.stop_data_frame_analytics' => {
4899             body => {},
4900             doc => "stop-dfanalytics",
4901             method => "POST",
4902             parts => { id => {} },
4903             paths => [
4904             [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}",
4905             "_stop"
4906             ],
4907             ],
4908             qs => {
4909             allow_no_match => "boolean",
4910             error_trace => "boolean",
4911             filter_path => "list",
4912             force => "boolean",
4913             human => "boolean",
4914             timeout => "time",
4915             },
4916             },
4917              
4918             'ml.stop_datafeed' => {
4919             body => {},
4920             doc => "ml-stop-datafeed",
4921             method => "POST",
4922             parts => { datafeed_id => {} },
4923             paths => [
4924             [ { datafeed_id => 2 }, "_ml",
4925             "datafeeds", "{datafeed_id}",
4926             "_stop",
4927             ],
4928             ],
4929             qs => {
4930             allow_no_datafeeds => "boolean",
4931             allow_no_match => "boolean",
4932             error_trace => "boolean",
4933             filter_path => "list",
4934             force => "boolean",
4935             human => "boolean",
4936             timeout => "time",
4937             },
4938             },
4939              
4940             'ml.update_data_frame_analytics' => {
4941             body => { required => 1 },
4942             doc => "update-dfanalytics",
4943             method => "POST",
4944             parts => { id => {} },
4945             paths => [
4946             [ { id => 3 }, "_ml", "data_frame", "analytics",
4947             "{id}", "_update"
4948             ],
4949             ],
4950             qs => {
4951             error_trace => "boolean",
4952             filter_path => "list",
4953             human => "boolean"
4954             },
4955             },
4956              
4957             'ml.update_datafeed' => {
4958             body => { required => 1 },
4959             doc => "ml-update-datafeed",
4960             method => "POST",
4961             parts => { datafeed_id => {} },
4962             paths => [
4963             [ { datafeed_id => 2 }, "_ml",
4964             "datafeeds", "{datafeed_id}",
4965             "_update",
4966             ],
4967             ],
4968             qs => {
4969             allow_no_indices => "boolean",
4970             error_trace => "boolean",
4971             expand_wildcards => "enum",
4972             filter_path => "list",
4973             human => "boolean",
4974             ignore_throttled => "boolean",
4975             ignore_unavailable => "boolean",
4976             },
4977             },
4978              
4979             'ml.update_filter' => {
4980             body => { required => 1 },
4981             doc => "ml-update-filter",
4982             method => "POST",
4983             parts => { filter_id => {} },
4984             paths => [
4985             [ { filter_id => 2 }, "_ml", "filters", "{filter_id}",
4986             "_update"
4987             ],
4988             ],
4989             qs => {
4990             error_trace => "boolean",
4991             filter_path => "list",
4992             human => "boolean"
4993             },
4994             },
4995              
4996             'ml.update_job' => {
4997             body => { required => 1 },
4998             doc => "ml-update-job",
4999             method => "POST",
5000             parts => { job_id => {} },
5001             paths => [
5002             [ { job_id => 2 }, "_ml",
5003             "anomaly_detectors", "{job_id}",
5004             "_update",
5005             ],
5006             ],
5007             qs => {
5008             error_trace => "boolean",
5009             filter_path => "list",
5010             human => "boolean"
5011             },
5012             },
5013              
5014             'ml.update_model_snapshot' => {
5015             body => { required => 1 },
5016             doc => "ml-update-snapshot",
5017             method => "POST",
5018             parts => { job_id => {}, snapshot_id => {} },
5019             paths => [
5020             [ { job_id => 2, snapshot_id => 4 }, "_ml",
5021             "anomaly_detectors", "{job_id}",
5022             "model_snapshots", "{snapshot_id}",
5023             "_update",
5024             ],
5025             ],
5026             qs => {
5027             error_trace => "boolean",
5028             filter_path => "list",
5029             human => "boolean"
5030             },
5031             },
5032              
5033             'ml.upgrade_job_snapshot' => {
5034             doc => "ml-upgrade-job-model-snapshot",
5035             method => "POST",
5036             parts => { job_id => {}, snapshot_id => {} },
5037             paths => [
5038             [ { job_id => 2, snapshot_id => 4 }, "_ml",
5039             "anomaly_detectors", "{job_id}",
5040             "model_snapshots", "{snapshot_id}",
5041             "_upgrade",
5042             ],
5043             ],
5044             qs => {
5045             error_trace => "boolean",
5046             filter_path => "list",
5047             human => "boolean",
5048             timeout => "time",
5049             wait_for_completion => "boolean",
5050             },
5051             },
5052              
5053             'ml.validate' => {
5054             body => { required => 1 },
5055             doc => "ml-jobs",
5056             method => "POST",
5057             parts => {},
5058             paths => [ [ {}, "_ml", "anomaly_detectors", "_validate" ] ],
5059             qs => {
5060             error_trace => "boolean",
5061             filter_path => "list",
5062             human => "boolean"
5063             },
5064             },
5065              
5066             'ml.validate_detector' => {
5067             body => { required => 1 },
5068             doc => "ml-jobs",
5069             method => "POST",
5070             parts => {},
5071             paths =>
5072             [ [ {}, "_ml", "anomaly_detectors", "_validate", "detector" ] ],
5073             qs => {
5074             error_trace => "boolean",
5075             filter_path => "list",
5076             human => "boolean"
5077             },
5078             },
5079              
5080             'monitoring.bulk' => {
5081             body => { required => 1 },
5082             doc => "monitor-elasticsearch-cluster",
5083             method => "POST",
5084             parts => { type => {} },
5085             paths => [
5086             [ { type => 1 }, "_monitoring", "{type}", "bulk" ],
5087             [ {}, "_monitoring", "bulk" ],
5088             ],
5089             qs => {
5090             error_trace => "boolean",
5091             filter_path => "list",
5092             human => "boolean",
5093             interval => "string",
5094             system_api_version => "string",
5095             system_id => "string",
5096             },
5097             serialize => "bulk",
5098             },
5099              
5100             'nodes.clear_repositories_metering_archive' => {
5101             doc => "clear-repositories-metering-archive-api",
5102             method => "DELETE",
5103             parts => { max_archive_version => {}, node_id => { multi => 1 } },
5104             paths => [
5105             [ { max_archive_version => 3, node_id => 1 },
5106             "_nodes", "{node_id}", "_repositories_metering",
5107             "{max_archive_version}",
5108             ],
5109             ],
5110             qs => {
5111             error_trace => "boolean",
5112             filter_path => "list",
5113             human => "boolean"
5114             },
5115             },
5116              
5117             'nodes.get_repositories_metering_info' => {
5118             doc => "get-repositories-metering-api",
5119             parts => { node_id => { multi => 1 } },
5120             paths => [
5121             [ { node_id => 1 }, "_nodes",
5122             "{node_id}", "_repositories_metering",
5123             ],
5124             ],
5125             qs => {
5126             error_trace => "boolean",
5127             filter_path => "list",
5128             human => "boolean"
5129             },
5130             },
5131              
5132             'nodes.hot_threads' => {
5133             doc => "cluster-nodes-hot-threads",
5134             parts => { node_id => { multi => 1 } },
5135             paths => [
5136             [ { node_id => 1 }, "_nodes", "{node_id}", "hot_threads" ],
5137             [ {}, "_nodes", "hot_threads" ],
5138             ],
5139             qs => {
5140             error_trace => "boolean",
5141             filter_path => "list",
5142             human => "boolean",
5143             ignore_idle_threads => "boolean",
5144             interval => "time",
5145             snapshots => "number",
5146             threads => "number",
5147             timeout => "time",
5148             type => "enum",
5149             },
5150             },
5151              
5152             'nodes.info' => {
5153             doc => "cluster-nodes-info",
5154             parts => { metric => { multi => 1 }, node_id => { multi => 1 } },
5155             paths => [
5156             [ { metric => 2, node_id => 1 }, "_nodes",
5157             "{node_id}", "{metric}",
5158             ],
5159             [ { metric => 1 }, "_nodes", "{metric}" ],
5160             [ { node_id => 1 }, "_nodes", "{node_id}" ],
5161             [ {}, "_nodes" ],
5162             ],
5163             qs => {
5164             error_trace => "boolean",
5165             filter_path => "list",
5166             flat_settings => "boolean",
5167             human => "boolean",
5168             timeout => "time",
5169             },
5170             },
5171              
5172             'nodes.reload_secure_settings' => {
5173             body => {},
5174             doc => "",
5175             method => "POST",
5176             parts => { node_id => { multi => 1 } },
5177             paths => [
5178             [ { node_id => 1 }, "_nodes",
5179             "{node_id}", "reload_secure_settings",
5180             ],
5181             [ {}, "_nodes", "reload_secure_settings" ],
5182             ],
5183             qs => {
5184             error_trace => "boolean",
5185             filter_path => "list",
5186             human => "boolean",
5187             timeout => "time",
5188             },
5189             },
5190              
5191             'nodes.stats' => {
5192             doc => "cluster-nodes-stats",
5193             parts => {
5194             index_metric => { multi => 1 },
5195             metric => { multi => 1 },
5196             node_id => { multi => 1 },
5197             },
5198             paths => [
5199             [ { index_metric => 4, metric => 3, node_id => 1 },
5200             "_nodes", "{node_id}", "stats", "{metric}", "{index_metric}",
5201             ],
5202             [ { index_metric => 3, metric => 2 }, "_nodes",
5203             "stats", "{metric}",
5204             "{index_metric}",
5205             ],
5206             [ { metric => 3, node_id => 1 }, "_nodes",
5207             "{node_id}", "stats",
5208             "{metric}",
5209             ],
5210             [ { metric => 2 }, "_nodes", "stats", "{metric}" ],
5211             [ { node_id => 1 }, "_nodes", "{node_id}", "stats" ],
5212             [ {}, "_nodes", "stats" ],
5213             ],
5214             qs => {
5215             completion_fields => "list",
5216             error_trace => "boolean",
5217             fielddata_fields => "list",
5218             fields => "list",
5219             filter_path => "list",
5220             groups => "boolean",
5221             human => "boolean",
5222             include_segment_file_sizes => "boolean",
5223             include_unloaded_segments => "boolean",
5224             level => "enum",
5225             timeout => "time",
5226             types => "list",
5227             },
5228             },
5229              
5230             'nodes.usage' => {
5231             doc => "cluster-nodes-usage",
5232             parts => { metric => { multi => 1 }, node_id => { multi => 1 } },
5233             paths => [
5234             [ { metric => 3, node_id => 1 }, "_nodes",
5235             "{node_id}", "usage",
5236             "{metric}",
5237             ],
5238             [ { metric => 2 }, "_nodes", "usage", "{metric}" ],
5239             [ { node_id => 1 }, "_nodes", "{node_id}", "usage" ],
5240             [ {}, "_nodes", "usage" ],
5241             ],
5242             qs => {
5243             error_trace => "boolean",
5244             filter_path => "list",
5245             human => "boolean",
5246             timeout => "time",
5247             },
5248             },
5249              
5250             'rollup.delete_job' => {
5251             doc => "rollup-delete-job",
5252             method => "DELETE",
5253             parts => { id => {} },
5254             paths => [ [ { id => 2 }, "_rollup", "job", "{id}" ] ],
5255             qs => {
5256             error_trace => "boolean",
5257             filter_path => "list",
5258             human => "boolean"
5259             },
5260             },
5261              
5262             'rollup.get_jobs' => {
5263             doc => "rollup-get-job",
5264             parts => { id => {} },
5265             paths => [
5266             [ { id => 2 }, "_rollup", "job", "{id}" ],
5267             [ {}, "_rollup", "job" ],
5268             ],
5269             qs => {
5270             error_trace => "boolean",
5271             filter_path => "list",
5272             human => "boolean"
5273             },
5274             },
5275              
5276             'rollup.get_rollup_caps' => {
5277             doc => "rollup-get-rollup-caps",
5278             parts => { id => {} },
5279             paths => [
5280             [ { id => 2 }, "_rollup", "data", "{id}" ],
5281             [ {}, "_rollup", "data" ],
5282             ],
5283             qs => {
5284             error_trace => "boolean",
5285             filter_path => "list",
5286             human => "boolean"
5287             },
5288             },
5289              
5290             'rollup.get_rollup_index_caps' => {
5291             doc => "rollup-get-rollup-index-caps",
5292             parts => { index => {} },
5293             paths => [ [ { index => 0 }, "{index}", "_rollup", "data" ] ],
5294             qs => {
5295             error_trace => "boolean",
5296             filter_path => "list",
5297             human => "boolean"
5298             },
5299             },
5300              
5301             'rollup.put_job' => {
5302             body => { required => 1 },
5303             doc => "rollup-put-job",
5304             method => "PUT",
5305             parts => { id => {} },
5306             paths => [ [ { id => 2 }, "_rollup", "job", "{id}" ] ],
5307             qs => {
5308             error_trace => "boolean",
5309             filter_path => "list",
5310             human => "boolean"
5311             },
5312             },
5313              
5314             'rollup.rollup' => {
5315             body => { required => 1 },
5316             doc => "xpack-rollup",
5317             method => "POST",
5318             parts =>
5319             { index => { required => 1 }, rollup_index => { required => 1 } },
5320             paths => [
5321             [ { index => 0, rollup_index => 2 }, "{index}",
5322             "_rollup", "{rollup_index}",
5323             ],
5324             ],
5325             qs => {
5326             error_trace => "boolean",
5327             filter_path => "list",
5328             human => "boolean"
5329             },
5330             },
5331              
5332             'rollup.rollup_search' => {
5333             body => { required => 1 },
5334             doc => "rollup-search",
5335             parts => { index => { multi => 1 }, type => {} },
5336             paths => [
5337             [ { index => 0, type => 1 }, "{index}",
5338             "{type}", "_rollup_search",
5339             ],
5340             [ { index => 0 }, "{index}", "_rollup_search" ],
5341             ],
5342             qs => {
5343             error_trace => "boolean",
5344             filter_path => "list",
5345             human => "boolean",
5346             rest_total_hits_as_int => "boolean",
5347             typed_keys => "boolean",
5348             },
5349             },
5350              
5351             'rollup.start_job' => {
5352             doc => "rollup-start-job",
5353             method => "POST",
5354             parts => { id => {} },
5355             paths => [ [ { id => 2 }, "_rollup", "job", "{id}", "_start" ] ],
5356             qs => {
5357             error_trace => "boolean",
5358             filter_path => "list",
5359             human => "boolean"
5360             },
5361             },
5362              
5363             'rollup.stop_job' => {
5364             doc => "rollup-stop-job",
5365             method => "POST",
5366             parts => { id => {} },
5367             paths => [ [ { id => 2 }, "_rollup", "job", "{id}", "_stop" ] ],
5368             qs => {
5369             error_trace => "boolean",
5370             filter_path => "list",
5371             human => "boolean",
5372             timeout => "time",
5373             wait_for_completion => "boolean",
5374             },
5375             },
5376              
5377             'searchable_snapshots.cache_stats' => {
5378             doc => "searchable-snapshots-apis",
5379             parts => { node_id => { multi => 1 } },
5380             paths => [
5381             [ { node_id => 1 }, "_searchable_snapshots",
5382             "{node_id}", "cache",
5383             "stats",
5384             ],
5385             [ {}, "_searchable_snapshots", "cache", "stats" ],
5386             ],
5387             qs => {
5388             error_trace => "boolean",
5389             filter_path => "list",
5390             human => "boolean"
5391             },
5392             },
5393              
5394             'searchable_snapshots.clear_cache' => {
5395             doc => "searchable-snapshots-apis",
5396             method => "POST",
5397             parts => { index => { multi => 1 } },
5398             paths => [
5399             [ { index => 0 }, "{index}",
5400             "_searchable_snapshots", "cache",
5401             "clear",
5402             ],
5403             [ {}, "_searchable_snapshots", "cache", "clear" ],
5404             ],
5405             qs => {
5406             allow_no_indices => "boolean",
5407             error_trace => "boolean",
5408             expand_wildcards => "enum",
5409             filter_path => "list",
5410             human => "boolean",
5411             ignore_unavailable => "boolean",
5412             },
5413             },
5414              
5415             'searchable_snapshots.mount' => {
5416             body => { required => 1 },
5417             doc => "searchable-snapshots-api-mount-snapshot",
5418             method => "POST",
5419             parts => { repository => {}, snapshot => {} },
5420             paths => [
5421             [ { repository => 1, snapshot => 2 }, "_snapshot",
5422             "{repository}", "{snapshot}",
5423             "_mount",
5424             ],
5425             ],
5426             qs => {
5427             error_trace => "boolean",
5428             filter_path => "list",
5429             human => "boolean",
5430             master_timeout => "time",
5431             storage => "string",
5432             wait_for_completion => "boolean",
5433             },
5434             },
5435              
5436             'searchable_snapshots.repository_stats' => {
5437             doc => "searchable-snapshots-apis",
5438             parts => { repository => {} },
5439             paths => [
5440             [ { repository => 1 }, "_snapshot", "{repository}", "_stats" ]
5441             ],
5442             qs => {
5443             error_trace => "boolean",
5444             filter_path => "list",
5445             human => "boolean"
5446             },
5447             },
5448              
5449             'searchable_snapshots.stats' => {
5450             doc => "searchable-snapshots-apis",
5451             parts => { index => { multi => 1 } },
5452             paths => [
5453             [ { index => 0 }, "{index}", "_searchable_snapshots", "stats" ],
5454             [ {}, "_searchable_snapshots", "stats" ],
5455             ],
5456             qs => {
5457             error_trace => "boolean",
5458             filter_path => "list",
5459             human => "boolean",
5460             level => "enum",
5461             },
5462             },
5463              
5464             'security.authenticate' => {
5465             doc => "security-api-authenticate",
5466             parts => {},
5467             paths => [ [ {}, "_security", "_authenticate" ] ],
5468             qs => {
5469             error_trace => "boolean",
5470             filter_path => "list",
5471             human => "boolean"
5472             },
5473             },
5474              
5475             'security.change_password' => {
5476             body => { required => 1 },
5477             doc => "security-api-change-password",
5478             method => "PUT",
5479             parts => { username => {} },
5480             paths => [
5481             [ { username => 2 }, "_security",
5482             "user", "{username}",
5483             "_password",
5484             ],
5485             [ {}, "_security", "user", "_password" ],
5486             ],
5487             qs => {
5488             error_trace => "boolean",
5489             filter_path => "list",
5490             human => "boolean",
5491             refresh => "enum",
5492             },
5493             },
5494              
5495             'security.clear_api_key_cache' => {
5496             doc => "security-api-clear-api-key-cache",
5497             method => "POST",
5498             parts => { ids => { multi => 1 } },
5499             paths => [
5500             [ { ids => 2 }, "_security", "api_key", "{ids}", "_clear_cache" ],
5501             ],
5502             qs => {
5503             error_trace => "boolean",
5504             filter_path => "list",
5505             human => "boolean"
5506             },
5507             },
5508              
5509             'security.clear_cached_privileges' => {
5510             doc => "security-api-clear-privilege-cache",
5511             method => "POST",
5512             parts => { application => { multi => 1 } },
5513             paths => [
5514             [ { application => 2 }, "_security",
5515             "privilege", "{application}",
5516             "_clear_cache",
5517             ],
5518             ],
5519             qs => {
5520             error_trace => "boolean",
5521             filter_path => "list",
5522             human => "boolean"
5523             },
5524             },
5525              
5526             'security.clear_cached_realms' => {
5527             doc => "security-api-clear-cache",
5528             method => "POST",
5529             parts => { realms => { multi => 1 } },
5530             paths => [
5531             [ { realms => 2 }, "_security", "realm", "{realms}",
5532             "_clear_cache",
5533             ],
5534             ],
5535             qs => {
5536             error_trace => "boolean",
5537             filter_path => "list",
5538             human => "boolean",
5539             usernames => "list",
5540             },
5541             },
5542              
5543             'security.clear_cached_roles' => {
5544             doc => "security-api-clear-role-cache",
5545             method => "POST",
5546             parts => { name => { multi => 1 } },
5547             paths => [
5548             [ { name => 2 }, "_security", "role", "{name}", "_clear_cache" ],
5549             ],
5550             qs => {
5551             error_trace => "boolean",
5552             filter_path => "list",
5553             human => "boolean"
5554             },
5555             },
5556              
5557             'security.clear_cached_service_tokens' => {
5558             doc => "security-api-clear-service-token-caches",
5559             method => "POST",
5560             parts => { name => { multi => 1 }, namespace => {}, service => {} },
5561             paths => [
5562             [ { name => 6, namespace => 2, service => 3 }, "_security",
5563             "service", "{namespace}",
5564             "{service}", "credential",
5565             "token", "{name}",
5566             "_clear_cache",
5567             ],
5568             ],
5569             qs => {
5570             error_trace => "boolean",
5571             filter_path => "list",
5572             human => "boolean"
5573             },
5574             },
5575              
5576             'security.create_api_key' => {
5577             body => { required => 1 },
5578             doc => "security-api-create-api-key",
5579             method => "PUT",
5580             parts => {},
5581             paths => [ [ {}, "_security", "api_key" ] ],
5582             qs => {
5583             error_trace => "boolean",
5584             filter_path => "list",
5585             human => "boolean",
5586             refresh => "enum",
5587             },
5588             },
5589              
5590             'security.create_service_token' => {
5591             doc => "security-api-create-service-token",
5592             method => "POST",
5593             parts => { name => {}, namespace => {}, service => {} },
5594             paths => [
5595             [ { name => 6, namespace => 2, service => 3 }, "_security",
5596             "service", "{namespace}",
5597             "{service}", "credential",
5598             "token", "{name}",
5599             ],
5600             [ { namespace => 2, service => 3 }, "_security",
5601             "service", "{namespace}",
5602             "{service}", "credential",
5603             "token",
5604             ],
5605             ],
5606             qs => {
5607             error_trace => "boolean",
5608             filter_path => "list",
5609             human => "boolean",
5610             refresh => "enum",
5611             },
5612             },
5613              
5614             'security.delete_privileges' => {
5615             doc => "security-api-delete-privilege",
5616             method => "DELETE",
5617             parts => { application => {}, name => {} },
5618             paths => [
5619             [ { application => 2, name => 3 }, "_security",
5620             "privilege", "{application}",
5621             "{name}",
5622             ],
5623             ],
5624             qs => {
5625             error_trace => "boolean",
5626             filter_path => "list",
5627             human => "boolean",
5628             refresh => "enum",
5629             },
5630             },
5631              
5632             'security.delete_role' => {
5633             doc => "security-api-delete-role",
5634             method => "DELETE",
5635             parts => { name => {} },
5636             paths => [ [ { name => 2 }, "_security", "role", "{name}" ] ],
5637             qs => {
5638             error_trace => "boolean",
5639             filter_path => "list",
5640             human => "boolean",
5641             refresh => "enum",
5642             },
5643             },
5644              
5645             'security.delete_role_mapping' => {
5646             doc => "security-api-delete-role-mapping",
5647             method => "DELETE",
5648             parts => { name => {} },
5649             paths => [ [ { name => 2 }, "_security", "role_mapping", "{name}" ] ],
5650             qs => {
5651             error_trace => "boolean",
5652             filter_path => "list",
5653             human => "boolean",
5654             refresh => "enum",
5655             },
5656             },
5657              
5658             'security.delete_service_token' => {
5659             doc => "security-api-delete-service-token",
5660             method => "DELETE",
5661             parts => { name => {}, namespace => {}, service => {} },
5662             paths => [
5663             [ { name => 6, namespace => 2, service => 3 }, "_security",
5664             "service", "{namespace}",
5665             "{service}", "credential",
5666             "token", "{name}",
5667             ],
5668             ],
5669             qs => {
5670             error_trace => "boolean",
5671             filter_path => "list",
5672             human => "boolean",
5673             refresh => "enum",
5674             },
5675             },
5676              
5677             'security.delete_user' => {
5678             doc => "security-api-delete-user",
5679             method => "DELETE",
5680             parts => { username => {} },
5681             paths => [ [ { username => 2 }, "_security", "user", "{username}" ] ],
5682             qs => {
5683             error_trace => "boolean",
5684             filter_path => "list",
5685             human => "boolean",
5686             refresh => "enum",
5687             },
5688             },
5689              
5690             'security.disable_user' => {
5691             doc => "security-api-disable-user",
5692             method => "PUT",
5693             parts => { username => {} },
5694             paths => [
5695             [ { username => 2 }, "_security",
5696             "user", "{username}",
5697             "_disable"
5698             ],
5699             ],
5700             qs => {
5701             error_trace => "boolean",
5702             filter_path => "list",
5703             human => "boolean",
5704             refresh => "enum",
5705             },
5706             },
5707              
5708             'security.enable_user' => {
5709             doc => "security-api-enable-user",
5710             method => "PUT",
5711             parts => { username => {} },
5712             paths => [
5713             [ { username => 2 }, "_security",
5714             "user", "{username}",
5715             "_enable"
5716             ],
5717             ],
5718             qs => {
5719             error_trace => "boolean",
5720             filter_path => "list",
5721             human => "boolean",
5722             refresh => "enum",
5723             },
5724             },
5725              
5726             'security.get_api_key' => {
5727             doc => "security-api-get-api-key",
5728             parts => {},
5729             paths => [ [ {}, "_security", "api_key" ] ],
5730             qs => {
5731             error_trace => "boolean",
5732             filter_path => "list",
5733             human => "boolean",
5734             id => "string",
5735             name => "string",
5736             owner => "boolean",
5737             realm_name => "string",
5738             username => "string",
5739             },
5740             },
5741              
5742             'security.get_builtin_privileges' => {
5743             doc => "security-api-get-builtin-privileges",
5744             parts => {},
5745             paths => [ [ {}, "_security", "privilege", "_builtin" ] ],
5746             qs => {
5747             error_trace => "boolean",
5748             filter_path => "list",
5749             human => "boolean"
5750             },
5751             },
5752              
5753             'security.get_privileges' => {
5754             doc => "security-api-get-privileges",
5755             parts => { application => {}, name => {} },
5756             paths => [
5757             [ { application => 2, name => 3 }, "_security",
5758             "privilege", "{application}",
5759             "{name}",
5760             ],
5761             [ { application => 2 }, "_security",
5762             "privilege", "{application}"
5763             ],
5764             [ {}, "_security", "privilege" ],
5765             ],
5766             qs => {
5767             error_trace => "boolean",
5768             filter_path => "list",
5769             human => "boolean"
5770             },
5771             },
5772              
5773             'security.get_role' => {
5774             doc => "security-api-get-role",
5775             parts => { name => { multi => 1 } },
5776             paths => [
5777             [ { name => 2 }, "_security", "role", "{name}" ],
5778             [ {}, "_security", "role" ],
5779             ],
5780             qs => {
5781             error_trace => "boolean",
5782             filter_path => "list",
5783             human => "boolean"
5784             },
5785             },
5786              
5787             'security.get_role_mapping' => {
5788             doc => "security-api-get-role-mapping",
5789             parts => { name => { multi => 1 } },
5790             paths => [
5791             [ { name => 2 }, "_security", "role_mapping", "{name}" ],
5792             [ {}, "_security", "role_mapping" ],
5793             ],
5794             qs => {
5795             error_trace => "boolean",
5796             filter_path => "list",
5797             human => "boolean"
5798             },
5799             },
5800              
5801             'security.get_service_accounts' => {
5802             doc => "security-api-get-service-accounts",
5803             parts => { namespace => {}, service => {} },
5804             paths => [
5805             [ { namespace => 2, service => 3 }, "_security",
5806             "service", "{namespace}",
5807             "{service}",
5808             ],
5809             [ { namespace => 2 }, "_security", "service", "{namespace}" ],
5810             [ {}, "_security", "service" ],
5811             ],
5812             qs => {
5813             error_trace => "boolean",
5814             filter_path => "list",
5815             human => "boolean"
5816             },
5817             },
5818              
5819             'security.get_service_credentials' => {
5820             doc => "security-api-get-service-credentials",
5821             parts => { namespace => {}, service => {} },
5822             paths => [
5823             [ { namespace => 2, service => 3 }, "_security",
5824             "service", "{namespace}",
5825             "{service}", "credential",
5826             ],
5827             ],
5828             qs => {
5829             error_trace => "boolean",
5830             filter_path => "list",
5831             human => "boolean"
5832             },
5833             },
5834              
5835             'security.get_token' => {
5836             body => { required => 1 },
5837             doc => "security-api-get-token",
5838             method => "POST",
5839             parts => {},
5840             paths => [ [ {}, "_security", "oauth2", "token" ] ],
5841             qs => {
5842             error_trace => "boolean",
5843             filter_path => "list",
5844             human => "boolean"
5845             },
5846             },
5847              
5848             'security.get_user' => {
5849             doc => "security-api-get-user",
5850             parts => { username => { multi => 1 } },
5851             paths => [
5852             [ { username => 2 }, "_security", "user", "{username}" ],
5853             [ {}, "_security", "user" ],
5854             ],
5855             qs => {
5856             error_trace => "boolean",
5857             filter_path => "list",
5858             human => "boolean"
5859             },
5860             },
5861              
5862             'security.get_user_privileges' => {
5863             doc => "security-api-get-user-privileges",
5864             parts => {},
5865             paths => [ [ {}, "_security", "user", "_privileges" ] ],
5866             qs => {
5867             error_trace => "boolean",
5868             filter_path => "list",
5869             human => "boolean"
5870             },
5871             },
5872              
5873             'security.grant_api_key' => {
5874             body => { required => 1 },
5875             doc => "security-api-grant-api-key",
5876             method => "POST",
5877             parts => {},
5878             paths => [ [ {}, "_security", "api_key", "grant" ] ],
5879             qs => {
5880             error_trace => "boolean",
5881             filter_path => "list",
5882             human => "boolean",
5883             refresh => "enum",
5884             },
5885             },
5886              
5887             'security.has_privileges' => {
5888             body => { required => 1 },
5889             doc => "security-api-has-privileges",
5890             parts => { user => {} },
5891             paths => [
5892             [ { user => 2 }, "_security",
5893             "user", "{user}",
5894             "_has_privileges"
5895             ],
5896             [ {}, "_security", "user", "_has_privileges" ],
5897             ],
5898             qs => {
5899             error_trace => "boolean",
5900             filter_path => "list",
5901             human => "boolean"
5902             },
5903             },
5904              
5905             'security.invalidate_api_key' => {
5906             body => { required => 1 },
5907             doc => "security-api-invalidate-api-key",
5908             method => "DELETE",
5909             parts => {},
5910             paths => [ [ {}, "_security", "api_key" ] ],
5911             qs => {
5912             error_trace => "boolean",
5913             filter_path => "list",
5914             human => "boolean"
5915             },
5916             },
5917              
5918             'security.invalidate_token' => {
5919             body => { required => 1 },
5920             doc => "security-api-invalidate-token",
5921             method => "DELETE",
5922             parts => {},
5923             paths => [ [ {}, "_security", "oauth2", "token" ] ],
5924             qs => {
5925             error_trace => "boolean",
5926             filter_path => "list",
5927             human => "boolean"
5928             },
5929             },
5930              
5931             'security.put_privileges' => {
5932             body => { required => 1 },
5933             doc => "security-api-put-privileges",
5934             method => "PUT",
5935             parts => {},
5936             paths => [ [ {}, "_security", "privilege" ] ],
5937             qs => {
5938             error_trace => "boolean",
5939             filter_path => "list",
5940             human => "boolean",
5941             refresh => "enum",
5942             },
5943             },
5944              
5945             'security.put_role' => {
5946             body => { required => 1 },
5947             doc => "security-api-put-role",
5948             method => "PUT",
5949             parts => { name => {} },
5950             paths => [ [ { name => 2 }, "_security", "role", "{name}" ] ],
5951             qs => {
5952             error_trace => "boolean",
5953             filter_path => "list",
5954             human => "boolean",
5955             refresh => "enum",
5956             },
5957             },
5958              
5959             'security.put_role_mapping' => {
5960             body => { required => 1 },
5961             doc => "security-api-put-role-mapping",
5962             method => "PUT",
5963             parts => { name => {} },
5964             paths => [ [ { name => 2 }, "_security", "role_mapping", "{name}" ] ],
5965             qs => {
5966             error_trace => "boolean",
5967             filter_path => "list",
5968             human => "boolean",
5969             refresh => "enum",
5970             },
5971             },
5972              
5973             'security.put_user' => {
5974             body => { required => 1 },
5975             doc => "security-api-put-user",
5976             method => "PUT",
5977             parts => { username => {} },
5978             paths => [ [ { username => 2 }, "_security", "user", "{username}" ] ],
5979             qs => {
5980             error_trace => "boolean",
5981             filter_path => "list",
5982             human => "boolean",
5983             refresh => "enum",
5984             },
5985             },
5986              
5987             'security.query_api_keys' => {
5988             body => {},
5989             doc => "security-api-query-api-key",
5990             parts => {},
5991             paths => [ [ {}, "_security", "_query", "api_key" ] ],
5992             qs => {
5993             error_trace => "boolean",
5994             filter_path => "list",
5995             human => "boolean"
5996             },
5997             },
5998              
5999             'security.saml_authenticate' => {
6000             body => { required => 1 },
6001             doc => "security-api-saml-authenticate",
6002             method => "POST",
6003             parts => {},
6004             paths => [ [ {}, "_security", "saml", "authenticate" ] ],
6005             qs => {
6006             error_trace => "boolean",
6007             filter_path => "list",
6008             human => "boolean"
6009             },
6010             },
6011              
6012             'security.saml_complete_logout' => {
6013             body => { required => 1 },
6014             doc => "security-api-saml-complete-logout",
6015             method => "POST",
6016             parts => {},
6017             paths => [ [ {}, "_security", "saml", "complete_logout" ] ],
6018             qs => {
6019             error_trace => "boolean",
6020             filter_path => "list",
6021             human => "boolean"
6022             },
6023             },
6024              
6025             'security.saml_invalidate' => {
6026             body => { required => 1 },
6027             doc => "security-api-saml-invalidate",
6028             method => "POST",
6029             parts => {},
6030             paths => [ [ {}, "_security", "saml", "invalidate" ] ],
6031             qs => {
6032             error_trace => "boolean",
6033             filter_path => "list",
6034             human => "boolean"
6035             },
6036             },
6037              
6038             'security.saml_logout' => {
6039             body => { required => 1 },
6040             doc => "security-api-saml-logout",
6041             method => "POST",
6042             parts => {},
6043             paths => [ [ {}, "_security", "saml", "logout" ] ],
6044             qs => {
6045             error_trace => "boolean",
6046             filter_path => "list",
6047             human => "boolean"
6048             },
6049             },
6050              
6051             'security.saml_prepare_authentication' => {
6052             body => { required => 1 },
6053             doc => "security-api-saml-prepare-authentication",
6054             method => "POST",
6055             parts => {},
6056             paths => [ [ {}, "_security", "saml", "prepare" ] ],
6057             qs => {
6058             error_trace => "boolean",
6059             filter_path => "list",
6060             human => "boolean"
6061             },
6062             },
6063              
6064             'security.saml_service_provider_metadata' => {
6065             doc => "security-api-saml-sp-metadata",
6066             parts => { realm_name => {} },
6067             paths => [
6068             [ { realm_name => 3 }, "_security",
6069             "saml", "metadata",
6070             "{realm_name}",
6071             ],
6072             ],
6073             qs => {
6074             error_trace => "boolean",
6075             filter_path => "list",
6076             human => "boolean"
6077             },
6078             },
6079              
6080             'shutdown.delete_node' => {
6081             doc => "",
6082             method => "DELETE",
6083             parts => { node_id => {} },
6084             paths => [ [ { node_id => 1 }, "_nodes", "{node_id}", "shutdown" ] ],
6085             qs => {
6086             error_trace => "boolean",
6087             filter_path => "list",
6088             human => "boolean"
6089             },
6090             },
6091              
6092             'shutdown.get_node' => {
6093             doc => "",
6094             parts => { node_id => {} },
6095             paths => [
6096             [ { node_id => 1 }, "_nodes", "{node_id}", "shutdown" ],
6097             [ {}, "_nodes", "shutdown" ],
6098             ],
6099             qs => {
6100             error_trace => "boolean",
6101             filter_path => "list",
6102             human => "boolean"
6103             },
6104             },
6105              
6106             'shutdown.put_node' => {
6107             body => { required => 1 },
6108             doc => "",
6109             method => "PUT",
6110             parts => { node_id => {} },
6111             paths => [ [ { node_id => 1 }, "_nodes", "{node_id}", "shutdown" ] ],
6112             qs => {
6113             error_trace => "boolean",
6114             filter_path => "list",
6115             human => "boolean"
6116             },
6117             },
6118              
6119             'slm.delete_lifecycle' => {
6120             doc => "slm-api-delete-policy",
6121             method => "DELETE",
6122             parts => { policy_id => {} },
6123             paths => [ [ { policy_id => 2 }, "_slm", "policy", "{policy_id}" ] ],
6124             qs => {
6125             error_trace => "boolean",
6126             filter_path => "list",
6127             human => "boolean"
6128             },
6129             },
6130              
6131             'slm.execute_lifecycle' => {
6132             doc => "slm-api-execute-lifecycle",
6133             method => "PUT",
6134             parts => { policy_id => {} },
6135             paths => [
6136             [ { policy_id => 2 }, "_slm",
6137             "policy", "{policy_id}",
6138             "_execute"
6139             ],
6140             ],
6141             qs => {
6142             error_trace => "boolean",
6143             filter_path => "list",
6144             human => "boolean"
6145             },
6146             },
6147              
6148             'slm.execute_retention' => {
6149             doc => "slm-api-execute-retention",
6150             method => "POST",
6151             parts => {},
6152             paths => [ [ {}, "_slm", "_execute_retention" ] ],
6153             qs => {
6154             error_trace => "boolean",
6155             filter_path => "list",
6156             human => "boolean"
6157             },
6158             },
6159              
6160             'slm.get_lifecycle' => {
6161             doc => "slm-api-get-policy",
6162             parts => { policy_id => { multi => 1 } },
6163             paths => [
6164             [ { policy_id => 2 }, "_slm", "policy", "{policy_id}" ],
6165             [ {}, "_slm", "policy" ],
6166             ],
6167             qs => {
6168             error_trace => "boolean",
6169             filter_path => "list",
6170             human => "boolean"
6171             },
6172             },
6173              
6174             'slm.get_stats' => {
6175             doc => "slm-api-get-stats",
6176             parts => {},
6177             paths => [ [ {}, "_slm", "stats" ] ],
6178             qs => {
6179             error_trace => "boolean",
6180             filter_path => "list",
6181             human => "boolean"
6182             },
6183             },
6184              
6185             'slm.get_status' => {
6186             doc => "slm-api-get-status",
6187             parts => {},
6188             paths => [ [ {}, "_slm", "status" ] ],
6189             qs => {
6190             error_trace => "boolean",
6191             filter_path => "list",
6192             human => "boolean"
6193             },
6194             },
6195              
6196             'slm.put_lifecycle' => {
6197             body => {},
6198             doc => "slm-api-put-policy",
6199             method => "PUT",
6200             parts => { policy_id => {} },
6201             paths => [ [ { policy_id => 2 }, "_slm", "policy", "{policy_id}" ] ],
6202             qs => {
6203             error_trace => "boolean",
6204             filter_path => "list",
6205             human => "boolean"
6206             },
6207             },
6208              
6209             'slm.start' => {
6210             doc => "slm-api-start",
6211             method => "POST",
6212             parts => {},
6213             paths => [ [ {}, "_slm", "start" ] ],
6214             qs => {
6215             error_trace => "boolean",
6216             filter_path => "list",
6217             human => "boolean"
6218             },
6219             },
6220              
6221             'slm.stop' => {
6222             doc => "slm-api-stop",
6223             method => "POST",
6224             parts => {},
6225             paths => [ [ {}, "_slm", "stop" ] ],
6226             qs => {
6227             error_trace => "boolean",
6228             filter_path => "list",
6229             human => "boolean"
6230             },
6231             },
6232              
6233             'snapshot.cleanup_repository' => {
6234             doc => "clean-up-snapshot-repo-api",
6235             method => "POST",
6236             parts => { repository => {} },
6237             paths => [
6238             [ { repository => 1 }, "_snapshot", "{repository}", "_cleanup" ],
6239             ],
6240             qs => {
6241             error_trace => "boolean",
6242             filter_path => "list",
6243             human => "boolean",
6244             master_timeout => "time",
6245             timeout => "time",
6246             },
6247             },
6248              
6249             'snapshot.clone' => {
6250             body => { required => 1 },
6251             doc => "modules-snapshots",
6252             method => "PUT",
6253             parts => { repository => {}, snapshot => {}, target_snapshot => {} },
6254             paths => [
6255             [ { repository => 1, snapshot => 2, target_snapshot => 4 },
6256             "_snapshot",
6257             "{repository}",
6258             "{snapshot}",
6259             "_clone",
6260             "{target_snapshot}",
6261             ],
6262             ],
6263             qs => {
6264             error_trace => "boolean",
6265             filter_path => "list",
6266             human => "boolean",
6267             master_timeout => "time",
6268             },
6269             },
6270              
6271             'snapshot.create' => {
6272             body => {},
6273             doc => "modules-snapshots",
6274             method => "PUT",
6275             parts => { repository => {}, snapshot => {} },
6276             paths => [
6277             [ { repository => 1, snapshot => 2 }, "_snapshot",
6278             "{repository}", "{snapshot}",
6279             ],
6280             ],
6281             qs => {
6282             error_trace => "boolean",
6283             filter_path => "list",
6284             human => "boolean",
6285             master_timeout => "time",
6286             wait_for_completion => "boolean",
6287             },
6288             },
6289              
6290             'snapshot.create_repository' => {
6291             body => { required => 1 },
6292             doc => "modules-snapshots",
6293             method => "PUT",
6294             parts => { repository => {} },
6295             paths => [ [ { repository => 1 }, "_snapshot", "{repository}" ] ],
6296             qs => {
6297             error_trace => "boolean",
6298             filter_path => "list",
6299             human => "boolean",
6300             master_timeout => "time",
6301             timeout => "time",
6302             verify => "boolean",
6303             },
6304             },
6305              
6306             'snapshot.delete' => {
6307             doc => "modules-snapshots",
6308             method => "DELETE",
6309             parts => { repository => {}, snapshot => {} },
6310             paths => [
6311             [ { repository => 1, snapshot => 2 }, "_snapshot",
6312             "{repository}", "{snapshot}",
6313             ],
6314             ],
6315             qs => {
6316             error_trace => "boolean",
6317             filter_path => "list",
6318             human => "boolean",
6319             master_timeout => "time",
6320             },
6321             },
6322              
6323             'snapshot.delete_repository' => {
6324             doc => "modules-snapshots",
6325             method => "DELETE",
6326             parts => { repository => { multi => 1 } },
6327             paths => [ [ { repository => 1 }, "_snapshot", "{repository}" ] ],
6328             qs => {
6329             error_trace => "boolean",
6330             filter_path => "list",
6331             human => "boolean",
6332             master_timeout => "time",
6333             timeout => "time",
6334             },
6335             },
6336              
6337             'snapshot.get' => {
6338             doc => "modules-snapshots",
6339             parts => { repository => {}, snapshot => { multi => 1 } },
6340             paths => [
6341             [ { repository => 1, snapshot => 2 }, "_snapshot",
6342             "{repository}", "{snapshot}",
6343             ],
6344             ],
6345             qs => {
6346             error_trace => "boolean",
6347             filter_path => "list",
6348             human => "boolean",
6349             ignore_unavailable => "boolean",
6350             include_repository => "boolean",
6351             index_details => "boolean",
6352             master_timeout => "time",
6353             verbose => "boolean",
6354             },
6355             },
6356              
6357             'snapshot.get_repository' => {
6358             doc => "modules-snapshots",
6359             parts => { repository => { multi => 1 } },
6360             paths => [
6361             [ { repository => 1 }, "_snapshot", "{repository}" ],
6362             [ {}, "_snapshot" ],
6363             ],
6364             qs => {
6365             error_trace => "boolean",
6366             filter_path => "list",
6367             human => "boolean",
6368             local => "boolean",
6369             master_timeout => "time",
6370             },
6371             },
6372              
6373             'snapshot.repository_analyze' => {
6374             doc => "modules-snapshots",
6375             method => "POST",
6376             parts => { repository => {} },
6377             paths => [
6378             [ { repository => 1 }, "_snapshot", "{repository}", "_analyze" ],
6379             ],
6380             qs => {
6381             blob_count => "number",
6382             concurrency => "number",
6383             detailed => "boolean",
6384             early_read_node_count => "number",
6385             error_trace => "boolean",
6386             filter_path => "list",
6387             human => "boolean",
6388             max_blob_size => "string",
6389             max_total_data_size => "string",
6390             rare_action_probability => "number",
6391             rarely_abort_writes => "boolean",
6392             read_node_count => "number",
6393             seed => "number",
6394             timeout => "time",
6395             },
6396             },
6397              
6398             'snapshot.restore' => {
6399             body => {},
6400             doc => "modules-snapshots",
6401             method => "POST",
6402             parts => { repository => {}, snapshot => {} },
6403             paths => [
6404             [ { repository => 1, snapshot => 2 }, "_snapshot",
6405             "{repository}", "{snapshot}",
6406             "_restore",
6407             ],
6408             ],
6409             qs => {
6410             error_trace => "boolean",
6411             filter_path => "list",
6412             human => "boolean",
6413             master_timeout => "time",
6414             wait_for_completion => "boolean",
6415             },
6416             },
6417              
6418             'snapshot.status' => {
6419             doc => "modules-snapshots",
6420             parts => { repository => {}, snapshot => { multi => 1 } },
6421             paths => [
6422             [ { repository => 1, snapshot => 2 }, "_snapshot",
6423             "{repository}", "{snapshot}",
6424             "_status",
6425             ],
6426             [ { repository => 1 }, "_snapshot", "{repository}", "_status" ],
6427             [ {}, "_snapshot", "_status" ],
6428             ],
6429             qs => {
6430             error_trace => "boolean",
6431             filter_path => "list",
6432             human => "boolean",
6433             ignore_unavailable => "boolean",
6434             master_timeout => "time",
6435             },
6436             },
6437              
6438             'snapshot.verify_repository' => {
6439             doc => "modules-snapshots",
6440             method => "POST",
6441             parts => { repository => {} },
6442             paths => [
6443             [ { repository => 1 }, "_snapshot", "{repository}", "_verify" ],
6444             ],
6445             qs => {
6446             error_trace => "boolean",
6447             filter_path => "list",
6448             human => "boolean",
6449             master_timeout => "time",
6450             timeout => "time",
6451             },
6452             },
6453              
6454             'sql.clear_cursor' => {
6455             body => { required => 1 },
6456             doc => "clear-sql-cursor-api",
6457             method => "POST",
6458             parts => {},
6459             paths => [ [ {}, "_sql", "close" ] ],
6460             qs => {
6461             error_trace => "boolean",
6462             filter_path => "list",
6463             human => "boolean"
6464             },
6465             },
6466              
6467             'sql.delete_async' => {
6468             doc => "delete-async-sql-search-api",
6469             method => "DELETE",
6470             parts => { id => {} },
6471             paths => [ [ { id => 3 }, "_sql", "async", "delete", "{id}" ] ],
6472             qs => {
6473             error_trace => "boolean",
6474             filter_path => "list",
6475             human => "boolean"
6476             },
6477             },
6478              
6479             'sql.get_async' => {
6480             doc => "get-async-sql-search-api",
6481             parts => { id => {} },
6482             paths => [ [ { id => 2 }, "_sql", "async", "{id}" ] ],
6483             qs => {
6484             delimiter => "string",
6485             error_trace => "boolean",
6486             filter_path => "list",
6487             format => "string",
6488             human => "boolean",
6489             keep_alive => "time",
6490             wait_for_completion_timeout => "time",
6491             },
6492             },
6493              
6494             'sql.get_async_status' => {
6495             doc => "get-async-sql-search-status-api",
6496             parts => { id => {} },
6497             paths => [ [ { id => 3 }, "_sql", "async", "status", "{id}" ] ],
6498             qs => {
6499             error_trace => "boolean",
6500             filter_path => "list",
6501             human => "boolean"
6502             },
6503             },
6504              
6505             'sql.query' => {
6506             body => { required => 1 },
6507             doc => "sql-search-api",
6508             method => "POST",
6509             parts => {},
6510             paths => [ [ {}, "_sql" ] ],
6511             qs => {
6512             error_trace => "boolean",
6513             filter_path => "list",
6514             format => "string",
6515             human => "boolean",
6516             },
6517             },
6518              
6519             'sql.translate' => {
6520             body => { required => 1 },
6521             doc => "sql-translate-api",
6522             method => "POST",
6523             parts => {},
6524             paths => [ [ {}, "_sql", "translate" ] ],
6525             qs => {
6526             error_trace => "boolean",
6527             filter_path => "list",
6528             human => "boolean"
6529             },
6530             },
6531              
6532             'ssl.certificates' => {
6533             doc => "security-api-ssl",
6534             parts => {},
6535             paths => [ [ {}, "_ssl", "certificates" ] ],
6536             qs => {
6537             error_trace => "boolean",
6538             filter_path => "list",
6539             human => "boolean"
6540             },
6541             },
6542              
6543             'tasks.cancel' => {
6544             doc => "tasks",
6545             method => "POST",
6546             parts => { task_id => {} },
6547             paths => [
6548             [ { task_id => 1 }, "_tasks", "{task_id}", "_cancel" ],
6549             [ {}, "_tasks", "_cancel" ],
6550             ],
6551             qs => {
6552             actions => "list",
6553             error_trace => "boolean",
6554             filter_path => "list",
6555             human => "boolean",
6556             nodes => "list",
6557             parent_task_id => "string",
6558             wait_for_completion => "boolean",
6559             },
6560             },
6561              
6562             'tasks.get' => {
6563             doc => "tasks",
6564             parts => { task_id => {} },
6565             paths => [ [ { task_id => 1 }, "_tasks", "{task_id}" ] ],
6566             qs => {
6567             error_trace => "boolean",
6568             filter_path => "list",
6569             human => "boolean",
6570             timeout => "time",
6571             wait_for_completion => "boolean",
6572             },
6573             },
6574              
6575             'tasks.list' => {
6576             doc => "tasks",
6577             parts => {},
6578             paths => [ [ {}, "_tasks" ] ],
6579             qs => {
6580             actions => "list",
6581             detailed => "boolean",
6582             error_trace => "boolean",
6583             filter_path => "list",
6584             group_by => "enum",
6585             human => "boolean",
6586             nodes => "list",
6587             parent_task_id => "string",
6588             timeout => "time",
6589             wait_for_completion => "boolean",
6590             },
6591             },
6592              
6593             'text_structure.find_structure' => {
6594             body => { required => 1 },
6595             doc => "find-structure",
6596             method => "POST",
6597             parts => {},
6598             paths => [ [ {}, "_text_structure", "find_structure" ] ],
6599             qs => {
6600             charset => "string",
6601             column_names => "list",
6602             delimiter => "string",
6603             error_trace => "boolean",
6604             explain => "boolean",
6605             filter_path => "list",
6606             format => "enum",
6607             grok_pattern => "string",
6608             has_header_row => "boolean",
6609             human => "boolean",
6610             line_merge_size_limit => "int",
6611             lines_to_sample => "int",
6612             quote => "string",
6613             should_trim_fields => "boolean",
6614             timeout => "time",
6615             timestamp_field => "string",
6616             timestamp_format => "string",
6617             },
6618             serialize => "bulk",
6619             },
6620              
6621             'transform.delete_transform' => {
6622             doc => "delete-transform",
6623             method => "DELETE",
6624             parts => { transform_id => {} },
6625             paths =>
6626             [ [ { transform_id => 1 }, "_transform", "{transform_id}" ] ],
6627             qs => {
6628             error_trace => "boolean",
6629             filter_path => "list",
6630             force => "boolean",
6631             human => "boolean",
6632             },
6633             },
6634              
6635             'transform.get_transform' => {
6636             doc => "get-transform",
6637             parts => { transform_id => {} },
6638             paths => [
6639             [ { transform_id => 1 }, "_transform", "{transform_id}" ],
6640             [ {}, "_transform" ],
6641             ],
6642             qs => {
6643             allow_no_match => "boolean",
6644             error_trace => "boolean",
6645             exclude_generated => "boolean",
6646             filter_path => "list",
6647             from => "int",
6648             human => "boolean",
6649             size => "int",
6650             },
6651             },
6652              
6653             'transform.get_transform_stats' => {
6654             doc => "get-transform-stats",
6655             parts => { transform_id => {} },
6656             paths => [
6657             [ { transform_id => 1 }, "_transform",
6658             "{transform_id}", "_stats"
6659             ],
6660             ],
6661             qs => {
6662             allow_no_match => "boolean",
6663             error_trace => "boolean",
6664             filter_path => "list",
6665             from => "number",
6666             human => "boolean",
6667             size => "number",
6668             },
6669             },
6670              
6671             'transform.preview_transform' => {
6672             body => { required => 1 },
6673             doc => "preview-transform",
6674             method => "POST",
6675             parts => {},
6676             paths => [ [ {}, "_transform", "_preview" ] ],
6677             qs => {
6678             error_trace => "boolean",
6679             filter_path => "list",
6680             human => "boolean"
6681             },
6682             },
6683              
6684             'transform.put_transform' => {
6685             body => { required => 1 },
6686             doc => "put-transform",
6687             method => "PUT",
6688             parts => { transform_id => {} },
6689             paths =>
6690             [ [ { transform_id => 1 }, "_transform", "{transform_id}" ] ],
6691             qs => {
6692             defer_validation => "boolean",
6693             error_trace => "boolean",
6694             filter_path => "list",
6695             human => "boolean",
6696             },
6697             },
6698              
6699             'transform.start_transform' => {
6700             doc => "start-transform",
6701             method => "POST",
6702             parts => { transform_id => {} },
6703             paths => [
6704             [ { transform_id => 1 }, "_transform",
6705             "{transform_id}", "_start"
6706             ],
6707             ],
6708             qs => {
6709             error_trace => "boolean",
6710             filter_path => "list",
6711             human => "boolean",
6712             timeout => "time",
6713             },
6714             },
6715              
6716             'transform.stop_transform' => {
6717             doc => "stop-transform",
6718             method => "POST",
6719             parts => { transform_id => {} },
6720             paths => [
6721             [ { transform_id => 1 }, "_transform", "{transform_id}",
6722             "_stop"
6723             ],
6724             ],
6725             qs => {
6726             allow_no_match => "boolean",
6727             error_trace => "boolean",
6728             filter_path => "list",
6729             force => "boolean",
6730             human => "boolean",
6731             timeout => "time",
6732             wait_for_checkpoint => "boolean",
6733             wait_for_completion => "boolean",
6734             },
6735             },
6736              
6737             'transform.update_transform' => {
6738             body => { required => 1 },
6739             doc => "update-transform",
6740             method => "POST",
6741             parts => { transform_id => { required => 1 } },
6742             paths => [
6743             [ { transform_id => 1 }, "_transform",
6744             "{transform_id}", "_update",
6745             ],
6746             ],
6747             qs => {
6748             defer_validation => "boolean",
6749             error_trace => "boolean",
6750             filter_path => "list",
6751             human => "boolean",
6752             },
6753             },
6754              
6755             'watcher.ack_watch' => {
6756             doc => "watcher-api-ack-watch",
6757             method => "PUT",
6758             parts => { action_id => { multi => 1 }, watch_id => {} },
6759             paths => [
6760             [ { action_id => 4, watch_id => 2 }, "_watcher",
6761             "watch", "{watch_id}",
6762             "_ack", "{action_id}",
6763             ],
6764             [ { watch_id => 2 }, "_watcher", "watch", "{watch_id}", "_ack" ],
6765             ],
6766             qs => {
6767             error_trace => "boolean",
6768             filter_path => "list",
6769             human => "boolean"
6770             },
6771             },
6772              
6773             'watcher.activate_watch' => {
6774             doc => "watcher-api-activate-watch",
6775             method => "PUT",
6776             parts => { watch_id => {} },
6777             paths => [
6778             [ { watch_id => 2 }, "_watcher",
6779             "watch", "{watch_id}",
6780             "_activate",
6781             ],
6782             ],
6783             qs => {
6784             error_trace => "boolean",
6785             filter_path => "list",
6786             human => "boolean"
6787             },
6788             },
6789              
6790             'watcher.deactivate_watch' => {
6791             doc => "watcher-api-deactivate-watch",
6792             method => "PUT",
6793             parts => { watch_id => {} },
6794             paths => [
6795             [ { watch_id => 2 }, "_watcher",
6796             "watch", "{watch_id}",
6797             "_deactivate",
6798             ],
6799             ],
6800             qs => {
6801             error_trace => "boolean",
6802             filter_path => "list",
6803             human => "boolean"
6804             },
6805             },
6806              
6807             'watcher.delete_watch' => {
6808             doc => "watcher-api-delete-watch",
6809             method => "DELETE",
6810             parts => { id => {} },
6811             paths => [ [ { id => 2 }, "_watcher", "watch", "{id}" ] ],
6812             qs => {
6813             error_trace => "boolean",
6814             filter_path => "list",
6815             human => "boolean"
6816             },
6817             },
6818              
6819             'watcher.execute_watch' => {
6820             body => {},
6821             doc => "watcher-api-execute-watch",
6822             method => "PUT",
6823             parts => { id => {} },
6824             paths => [
6825             [ { id => 2 }, "_watcher", "watch", "{id}", "_execute" ],
6826             [ {}, "_watcher", "watch", "_execute" ],
6827             ],
6828             qs => {
6829             debug => "boolean",
6830             error_trace => "boolean",
6831             filter_path => "list",
6832             human => "boolean",
6833             },
6834             },
6835              
6836             'watcher.get_watch' => {
6837             doc => "watcher-api-get-watch",
6838             parts => { id => {} },
6839             paths => [ [ { id => 2 }, "_watcher", "watch", "{id}" ] ],
6840             qs => {
6841             error_trace => "boolean",
6842             filter_path => "list",
6843             human => "boolean"
6844             },
6845             },
6846              
6847             'watcher.put_watch' => {
6848             body => {},
6849             doc => "watcher-api-put-watch",
6850             method => "PUT",
6851             parts => { id => {} },
6852             paths => [ [ { id => 2 }, "_watcher", "watch", "{id}" ] ],
6853             qs => {
6854             active => "boolean",
6855             error_trace => "boolean",
6856             filter_path => "list",
6857             human => "boolean",
6858             if_primary_term => "number",
6859             if_seq_no => "number",
6860             version => "number",
6861             },
6862             },
6863              
6864             'watcher.query_watches' => {
6865             body => {},
6866             doc => "watcher-api-query-watches",
6867             parts => {},
6868             paths => [ [ {}, "_watcher", "_query", "watches" ] ],
6869             qs => {
6870             error_trace => "boolean",
6871             filter_path => "list",
6872             human => "boolean"
6873             },
6874             },
6875              
6876             'watcher.start' => {
6877             doc => "watcher-api-start",
6878             method => "POST",
6879             parts => {},
6880             paths => [ [ {}, "_watcher", "_start" ] ],
6881             qs => {
6882             error_trace => "boolean",
6883             filter_path => "list",
6884             human => "boolean"
6885             },
6886             },
6887              
6888             'watcher.stats' => {
6889             doc => "watcher-api-stats",
6890             parts => { metric => { multi => 1 } },
6891             paths => [
6892             [ { metric => 2 }, "_watcher", "stats", "{metric}" ],
6893             [ {}, "_watcher", "stats" ],
6894             ],
6895             qs => {
6896             emit_stacktraces => "boolean",
6897             error_trace => "boolean",
6898             filter_path => "list",
6899             human => "boolean",
6900             },
6901             },
6902              
6903             'watcher.stop' => {
6904             doc => "watcher-api-stop",
6905             method => "POST",
6906             parts => {},
6907             paths => [ [ {}, "_watcher", "_stop" ] ],
6908             qs => {
6909             error_trace => "boolean",
6910             filter_path => "list",
6911             human => "boolean"
6912             },
6913             },
6914              
6915             'xpack.info' => {
6916             doc => "info-api",
6917             parts => {},
6918             paths => [ [ {}, "_xpack" ] ],
6919             qs => {
6920             accept_enterprise => "boolean",
6921             categories => "list",
6922             error_trace => "boolean",
6923             filter_path => "list",
6924             human => "boolean",
6925             },
6926             },
6927              
6928             'xpack.usage' => {
6929             doc => "usage-api",
6930             parts => {},
6931             paths => [ [ {}, "_xpack", "usage" ] ],
6932             qs => {
6933             error_trace => "boolean",
6934             filter_path => "list",
6935             human => "boolean",
6936             master_timeout => "time",
6937             },
6938             },
6939              
6940             #=== AUTOGEN - END ===
6941              
6942             );
6943              
6944             __PACKAGE__->_qs_init( \%API );
6945             1;
6946              
6947             =pod
6948              
6949             =encoding UTF-8
6950              
6951             =head1 NAME
6952              
6953             Search::Elasticsearch::Client::7_0::Role::API - This class contains the spec for the Elasticsearch APIs
6954              
6955             =head1 VERSION
6956              
6957             version 7.715
6958              
6959             =head1 DESCRIPTION
6960              
6961             All of the Elasticsearch APIs are defined in this role. The example given below
6962             is the definition for the L method:
6963              
6964             'index' => {
6965             body => { required => 1 },
6966             doc => "docs-index_",
6967             method => "POST",
6968             parts => { id => {}, index => {}, type => {} },
6969             paths => [
6970             [ { id => 2, index => 0, type => 1 }, "{index}",
6971             "{type}", "{id}"
6972             ],
6973             [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ],
6974             [ { index => 0, type => 1 }, "{index}", "{type}" ],
6975             [ { index => 0 }, "{index}", "_doc" ],
6976             ],
6977             qs => {
6978             error_trace => "boolean",
6979             filter_path => "list",
6980             human => "boolean",
6981             if_primary_term => "number",
6982             if_seq_no => "number",
6983             op_type => "enum",
6984             pipeline => "string",
6985             refresh => "enum",
6986             require_alias => "boolean",
6987             routing => "string",
6988             timeout => "time",
6989             version => "number",
6990             version_type => "enum",
6991             wait_for_active_shards => "string",
6992             },
6993             }
6994              
6995             These definitions can be used by different L
6996             implementations to provide distinct user interfaces.
6997              
6998             =head1 METHODS
6999              
7000             =head2 C
7001              
7002             $defn = $api->api($name);
7003              
7004             The only method in this class is the C method which takes the name
7005             of the I and returns its definition. Actions in the
7006             C or C namespace use the namespace as a prefix, eg:
7007              
7008             $defn = $e->api('indices.create');
7009             $defn = $e->api('cluster.node_stats');
7010              
7011             =head1 SEE ALSO
7012              
7013             =over
7014              
7015             =item *
7016              
7017             L
7018              
7019             =item *
7020              
7021             L
7022              
7023             =back
7024              
7025             =head1 AUTHOR
7026              
7027             Enrico Zimuel
7028              
7029             =head1 COPYRIGHT AND LICENSE
7030              
7031             This software is Copyright (c) 2021 by Elasticsearch BV.
7032              
7033             This is free software, licensed under:
7034              
7035             The Apache License, Version 2.0, January 2004
7036              
7037             =cut
7038              
7039             __END__