5_0/Role/API.pm untested

filter: Statementstmt 0.0% 0 / 371 Branchbran n/a Conditioncond 0.0% 0 / 5 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 381 CC 1 SCAR 6.9
CC
1
Cov
0%
api
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Search::Elasticsearch::Client::5_0::Role::API;
2 $Search::Elasticsearch::Client::5_0::Role::API::VERSION = '6.80_1'; # TRIAL
3  
4 $Search::Elasticsearch::Client::5_0::Role::API::VERSION = '6.801';use Moo::Role;
5 with 'Search::Elasticsearch::Role::API';
6  
7 use Search::Elasticsearch::Util qw(throw);
8 use namespace::clean;
9  
10 has 'api_version' => ( is => 'ro', default => '5_0' );
11  
12 our %API;
13  
14 #===================================
15 sub api {
16 #===================================
17 my $name = $_[1] || return \%API;
18 return $API{$name}
19 || throw( 'Internal', "Unknown api name ($name)" );
20 }
21  
22 #===================================
23 %API = (
24 #===================================
25  
26 'bulk.metadata' => {
27 params => {
28 '_index' => '_index',
29 'index' => '_index',
30 '_type' => '_type',
31 'type' => '_type',
32 '_id' => '_id',
33 'id' => '_id',
34 'pipeline' => 'pipeline',
35 'routing' => 'routing',
36 '_routing' => 'routing',
37 'parent' => 'parent',
38 '_parent' => 'parent',
39 'timestamp' => 'timestamp',
40 '_timestamp' => 'timestamp',
41 'ttl' => 'ttl',
42 '_ttl' => 'ttl',
43 'version' => 'version',
44 '_version' => 'version',
45 'version_type' => 'version_type',
46 '_version_type' => 'version_type'
47 }
48 },
49 'bulk.update' => {
50 params => [
51 '_retry_on_conflict', '_source',
52 '_source_include', '_source_exclude',
53 'detect_noop', 'doc',
54 'doc_as_upsert', 'fields',
55 'scripted_upsert', 'script',
56 'upsert',
57 ]
58 },
59 'bulk.required' => { params => [ 'index', 'type' ] },
60  
61 #=== AUTOGEN - START ===
62  
63 'bulk' => {
64 body => { required => 1 },
65 doc => "docs-bulk",
66 method => "POST",
67 parts => { index => {}, type => {} },
68 paths => [
69 [ { index => 0, type => 1 }, "{index}", "{type}", "_bulk" ],
70 [ { index => 0 }, "{index}", "_bulk" ],
71 [ {}, "_bulk" ],
72 ],
73 qs => {
74 _source => "list",
75 _source_exclude => "list",
76 _source_include => "list",
77 error_trace => "boolean",
78 fields => "list",
79 filter_path => "list",
80 human => "boolean",
81 pipeline => "string",
82 refresh => "enum",
83 routing => "string",
84 timeout => "time",
85 wait_for_active_shards => "string",
86 },
87 serialize => "bulk",
88 },
89  
90 'clear_scroll' => {
91 body => {},
92 doc => "search-request-scroll",
93 method => "DELETE",
94 parts => { scroll_id => { multi => 1 } },
95 paths => [
96 [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ],
97 [ {}, "_search", "scroll" ],
98 ],
99 qs => {
100 error_trace => "boolean",
101 filter_path => "list",
102 human => "boolean"
103 },
104 },
105  
106 'count' => {
107 body => {},
108 doc => "search-count",
109 method => "POST",
110 parts => { index => { multi => 1 }, type => { multi => 1 } },
111 paths => [
112 [ { index => 0, type => 1 }, "{index}", "{type}", "_count" ],
113 [ { index => 0 }, "{index}", "_count" ],
114 [ {}, "_count" ],
115 ],
116 qs => {
117 allow_no_indices => "boolean",
118 analyze_wildcard => "boolean",
119 analyzer => "string",
120 default_operator => "enum",
121 df => "string",
122 error_trace => "boolean",
123 expand_wildcards => "enum",
124 filter_path => "list",
125 human => "boolean",
126 ignore_unavailable => "boolean",
127 lenient => "boolean",
128 min_score => "number",
129 preference => "string",
130 q => "string",
131 routing => "list",
132 terminate_after => "number",
133 },
134 },
135  
136 'count_percolate' => {
137 body => {},
138 doc => "search-percolate",
139 parts => {
140 id => {},
141 index => { required => 1 },
142 type => { required => 1 }
143 },
144 paths => [
145 [ { id => 2, index => 0, type => 1 }, "{index}",
146 "{type}", "{id}",
147 "_percolate", "count",
148 ],
149 [ { index => 0, type => 1 }, "{index}",
150 "{type}", "_percolate",
151 "count",
152 ],
153 ],
154 qs => {
155 allow_no_indices => "boolean",
156 error_trace => "boolean",
157 expand_wildcards => "enum",
158 filter_path => "list",
159 human => "boolean",
160 ignore_unavailable => "boolean",
161 percolate_index => "string",
162 percolate_type => "string",
163 preference => "string",
164 routing => "list",
165 version => "number",
166 version_type => "enum",
167 },
168 },
169  
170 'create' => {
171 body => { required => 1 },
172 doc => "docs-index_",
173 method => "PUT",
174 parts => {
175 id => { required => 1 },
176 index => { required => 1 },
177 type => { required => 1 },
178 },
179 paths => [
180 [ { id => 2, index => 0, type => 1 },
181 "{index}", "{type}", "{id}", "_create",
182 ],
183 ],
184 qs => {
185 error_trace => "boolean",
186 filter_path => "list",
187 human => "boolean",
188 parent => "string",
189 pipeline => "string",
190 refresh => "enum",
191 routing => "string",
192 timeout => "time",
193 timestamp => "time",
194 ttl => "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 => {
205 id => { required => 1 },
206 index => { required => 1 },
207 type => { required => 1 },
208 },
209 paths => [
210 [ { id => 2, index => 0, type => 1 }, "{index}",
211 "{type}", "{id}"
212 ],
213 ],
214 qs => {
215 error_trace => "boolean",
216 filter_path => "list",
217 human => "boolean",
218 parent => "string",
219 refresh => "enum",
220 routing => "string",
221 timeout => "time",
222 version => "number",
223 version_type => "enum",
224 wait_for_active_shards => "string",
225 },
226 },
227  
228 'delete_by_query' => {
229 body => { required => 1 },
230 doc => "docs-delete-by-query",
231 method => "POST",
232 parts => {
233 index => { multi => 1, required => 1 },
234 type => { multi => 1 }
235 },
236 paths => [
237 [ { index => 0, type => 1 }, "{index}",
238 "{type}", "_delete_by_query",
239 ],
240 [ { index => 0 }, "{index}", "_delete_by_query" ],
241 ],
242 qs => {
243 _source => "list",
244 _source_exclude => "list",
245 _source_include => "list",
246 allow_no_indices => "boolean",
247 analyze_wildcard => "boolean",
248 analyzer => "string",
249 conflicts => "enum",
250 default_operator => "enum",
251 df => "string",
252 error_trace => "boolean",
253 expand_wildcards => "enum",
254 filter_path => "list",
255 from => "number",
256 human => "boolean",
257 ignore_unavailable => "boolean",
258 lenient => "boolean",
259 preference => "string",
260 q => "string",
261 refresh => "boolean",
262 request_cache => "boolean",
263 requests_per_second => "number",
264 routing => "list",
265 scroll => "time",
266 scroll_size => "number",
267 search_timeout => "time",
268 search_type => "enum",
269 size => "number",
270 slices => "number",
271 sort => "list",
272 stats => "list",
273 terminate_after => "number",
274 timeout => "time",
275 version => "boolean",
276 wait_for_active_shards => "string",
277 wait_for_completion => "boolean",
278 },
279 },
280  
281 'delete_script' => {
282 doc => "modules-scripting",
283 method => "DELETE",
284 parts => { id => { required => 1 }, lang => { required => 1 } },
285 paths => [
286 [ { id => 2, lang => 1 }, "_scripts", "{lang}", "{id}" ],
287 [ { lang => 1 }, "_scripts", "{lang}" ],
288 ],
289 qs => {
290 error_trace => "boolean",
291 filter_path => "list",
292 human => "boolean",
293 master_timeout => "time",
294 timeout => "time",
295 },
296 },
297  
298 'delete_template' => {
299 doc => "search-template",
300 method => "DELETE",
301 parts => { id => { required => 1 } },
302 paths => [ [ { id => 2 }, "_search", "template", "{id}" ] ],
303 qs => {
304 error_trace => "boolean",
305 filter_path => "list",
306 human => "boolean"
307 },
308 },
309  
310 'exists' => {
311 doc => "docs-get",
312 method => "HEAD",
313 parts => {
314 id => { required => 1 },
315 index => { required => 1 },
316 type => { required => 1 },
317 },
318 paths => [
319 [ { id => 2, index => 0, type => 1 }, "{index}",
320 "{type}", "{id}"
321 ],
322 ],
323 qs => {
324 _source => "list",
325 _source_exclude => "list",
326 _source_include => "list",
327 error_trace => "boolean",
328 filter_path => "list",
329 human => "boolean",
330 parent => "string",
331 preference => "string",
332 realtime => "boolean",
333 refresh => "boolean",
334 routing => "string",
335 stored_fields => "list",
336 version => "number",
337 version_type => "enum",
338 },
339 },
340  
341 'exists_source' => {
342 doc => "docs-get",
343 method => "HEAD",
344 parts => {
345 id => { required => 1 },
346 index => { required => 1 },
347 type => { required => 1 },
348 },
349 paths => [
350 [ { id => 2, index => 0, type => 1 },
351 "{index}", "{type}", "{id}", "_source",
352 ],
353 ],
354 qs => {
355 _source => "list",
356 _source_exclude => "list",
357 _source_include => "list",
358 error_trace => "boolean",
359 filter_path => "list",
360 human => "boolean",
361 parent => "string",
362 preference => "string",
363 realtime => "boolean",
364 refresh => "boolean",
365 routing => "string",
366 version => "number",
367 version_type => "enum",
368 },
369 },
370  
371 'explain' => {
372 body => {},
373 doc => "search-explain",
374 parts => {
375 id => { required => 1 },
376 index => { required => 1 },
377 type => { required => 1 },
378 },
379 paths => [
380 [ { id => 2, index => 0, type => 1 }, "{index}",
381 "{type}", "{id}",
382 "_explain",
383 ],
384 ],
385 qs => {
386 _source => "list",
387 _source_exclude => "list",
388 _source_include => "list",
389 analyze_wildcard => "boolean",
390 analyzer => "string",
391 default_operator => "enum",
392 df => "string",
393 error_trace => "boolean",
394 filter_path => "list",
395 human => "boolean",
396 lenient => "boolean",
397 parent => "string",
398 preference => "string",
399 q => "string",
400 routing => "string",
401 stored_fields => "list",
402 },
403 },
404  
405 'field_caps' => {
406 body => {},
407 doc => "search-field-caps",
408 parts => { index => { multi => 1 } },
409 paths => [
410 [ { index => 0 }, "{index}", "_field_caps" ],
411 [ {}, "_field_caps" ],
412 ],
413 qs => {
414 allow_no_indices => "boolean",
415 error_trace => "boolean",
416 expand_wildcards => "enum",
417 fields => "list",
418 filter_path => "list",
419 human => "boolean",
420 ignore_unavailable => "boolean",
421 },
422 },
423  
424 'field_stats' => {
425 body => {},
426 doc => "search-field-stats",
427 parts => { index => { multi => 1 } },
428 paths => [
429 [ { index => 0 }, "{index}", "_field_stats" ],
430 [ {}, "_field_stats" ],
431 ],
432 qs => {
433 allow_no_indices => "boolean",
434 error_trace => "boolean",
435 expand_wildcards => "enum",
436 fields => "list",
437 filter_path => "list",
438 human => "boolean",
439 ignore_unavailable => "boolean",
440 level => "enum",
441 },
442 },
443  
444 'get' => {
445 doc => "docs-get",
446 parts => {
447 id => { required => 1 },
448 index => { required => 1 },
449 type => { required => 1 },
450 },
451 paths => [
452 [ { id => 2, index => 0, type => 1 }, "{index}",
453 "{type}", "{id}"
454 ],
455 ],
456 qs => {
457 _source => "list",
458 _source_exclude => "list",
459 _source_include => "list",
460 error_trace => "boolean",
461 filter_path => "list",
462 human => "boolean",
463 parent => "string",
464 preference => "string",
465 realtime => "boolean",
466 refresh => "boolean",
467 routing => "string",
468 stored_fields => "list",
469 version => "number",
470 version_type => "enum",
471 },
472 },
473  
474 'get_script' => {
475 doc => "modules-scripting",
476 parts => { id => { required => 1 }, lang => { required => 1 } },
477 paths => [
478 [ { id => 2, lang => 1 }, "_scripts", "{lang}", "{id}" ],
479 [ { lang => 1 }, "_scripts", "{lang}" ],
480 ],
481 qs => {
482 error_trace => "boolean",
483 filter_path => "list",
484 human => "boolean"
485 },
486 },
487  
488 'get_source' => {
489 doc => "docs-get",
490 parts => {
491 id => { required => 1 },
492 index => { required => 1 },
493 type => { required => 1 },
494 },
495 paths => [
496 [ { id => 2, index => 0, type => 1 },
497 "{index}", "{type}", "{id}", "_source",
498 ],
499 ],
500 qs => {
501 _source => "list",
502 _source_exclude => "list",
503 _source_include => "list",
504 error_trace => "boolean",
505 filter_path => "list",
506 human => "boolean",
507 parent => "string",
508 preference => "string",
509 realtime => "boolean",
510 refresh => "boolean",
511 routing => "string",
512 version => "number",
513 version_type => "enum",
514 },
515 },
516  
517 'get_template' => {
518 doc => "search-template",
519 parts => { id => { required => 1 } },
520 paths => [ [ { id => 2 }, "_search", "template", "{id}" ] ],
521 qs => {
522 error_trace => "boolean",
523 filter_path => "list",
524 human => "boolean"
525 },
526 },
527  
528 'index' => {
529 body => { required => 1 },
530 doc => "docs-index_",
531 method => "POST",
532 parts => {
533 id => {},
534 index => { required => 1 },
535 type => { required => 1 }
536 },
537 paths => [
538 [ { id => 2, index => 0, type => 1 }, "{index}",
539 "{type}", "{id}"
540 ],
541 [ { index => 0, type => 1 }, "{index}", "{type}" ],
542 ],
543 qs => {
544 error_trace => "boolean",
545 filter_path => "list",
546 human => "boolean",
547 op_type => "enum",
548 parent => "string",
549 pipeline => "string",
550 refresh => "enum",
551 routing => "string",
552 timeout => "time",
553 timestamp => "time",
554 ttl => "time",
555 version => "number",
556 version_type => "enum",
557 wait_for_active_shards => "string",
558 },
559 },
560  
561 'info' => {
562 doc => "",
563 parts => {},
564 paths => [ [ {} ] ],
565 qs => {
566 error_trace => "boolean",
567 filter_path => "list",
568 human => "boolean"
569 },
570 },
571  
572 'mget' => {
573 body => { required => 1 },
574 doc => "docs-multi-get",
575 parts => { index => {}, type => {} },
576 paths => [
577 [ { index => 0, type => 1 }, "{index}", "{type}", "_mget" ],
578 [ { index => 0 }, "{index}", "_mget" ],
579 [ {}, "_mget" ],
580 ],
581 qs => {
582 _source => "list",
583 _source_exclude => "list",
584 _source_include => "list",
585 error_trace => "boolean",
586 filter_path => "list",
587 human => "boolean",
588 preference => "string",
589 realtime => "boolean",
590 refresh => "boolean",
591 routing => "string",
592 stored_fields => "list",
593 },
594 },
595  
596 'mpercolate' => {
597 body => { required => 1 },
598 doc => "search-percolate",
599 parts => { index => {}, type => {} },
600 paths => [
601 [ { index => 0, type => 1 }, "{index}", "{type}", "_mpercolate" ],
602 [ { index => 0 }, "{index}", "_mpercolate" ],
603 [ {}, "_mpercolate" ],
604 ],
605 qs => {
606 allow_no_indices => "boolean",
607 error_trace => "boolean",
608 expand_wildcards => "enum",
609 filter_path => "list",
610 human => "boolean",
611 ignore_unavailable => "boolean",
612 },
613 serialize => "bulk",
614 },
615  
616 'msearch' => {
617 body => { required => 1 },
618 doc => "search-multi-search",
619 parts => { index => { multi => 1 }, type => { multi => 1 } },
620 paths => [
621 [ { index => 0, type => 1 }, "{index}", "{type}", "_msearch" ],
622 [ { index => 0 }, "{index}", "_msearch" ],
623 [ {}, "_msearch" ],
624 ],
625 qs => {
626 error_trace => "boolean",
627 filter_path => "list",
628 human => "boolean",
629 max_concurrent_searches => "number",
630 pre_filter_shard_size => "number",
631 search_type => "enum",
632 typed_keys => "boolean",
633 },
634 serialize => "bulk",
635 },
636  
637 'msearch_template' => {
638 body => { required => 1 },
639 doc => "search-template",
640 parts => { index => { multi => 1 }, type => { multi => 1 } },
641 paths => [
642 [ { index => 0, type => 1 }, "{index}",
643 "{type}", "_msearch",
644 "template",
645 ],
646 [ { index => 0 }, "{index}", "_msearch", "template" ],
647 [ {}, "_msearch", "template" ],
648 ],
649 qs => {
650 error_trace => "boolean",
651 filter_path => "list",
652 human => "boolean",
653 max_concurrent_searches => "number",
654 search_type => "enum",
655 typed_keys => "boolean",
656 },
657 serialize => "bulk",
658 },
659  
660 'mtermvectors' => {
661 body => {},
662 doc => "docs-multi-termvectors",
663 parts => { index => {}, type => {} },
664 paths => [
665 [ { index => 0, type => 1 }, "{index}",
666 "{type}", "_mtermvectors"
667 ],
668 [ { index => 0 }, "{index}", "_mtermvectors" ],
669 [ {}, "_mtermvectors" ],
670 ],
671 qs => {
672 error_trace => "boolean",
673 field_statistics => "boolean",
674 fields => "list",
675 filter_path => "list",
676 human => "boolean",
677 ids => "list",
678 offsets => "boolean",
679 parent => "string",
680 payloads => "boolean",
681 positions => "boolean",
682 preference => "string",
683 realtime => "boolean",
684 routing => "string",
685 term_statistics => "boolean",
686 version => "number",
687 version_type => "enum",
688 },
689 },
690  
691 'percolate' => {
692 body => {},
693 doc => "search-percolate",
694 parts => {
695 id => {},
696 index => { required => 1 },
697 type => { required => 1 }
698 },
699 paths => [
700 [ { id => 2, index => 0, type => 1 }, "{index}",
701 "{type}", "{id}",
702 "_percolate",
703 ],
704 [ { index => 0, type => 1 }, "{index}", "{type}", "_percolate" ],
705 ],
706 qs => {
707 allow_no_indices => "boolean",
708 error_trace => "boolean",
709 expand_wildcards => "enum",
710 filter_path => "list",
711 human => "boolean",
712 ignore_unavailable => "boolean",
713 percolate_format => "enum",
714 percolate_index => "string",
715 percolate_preference => "string",
716 percolate_routing => "string",
717 percolate_type => "string",
718 preference => "string",
719 routing => "list",
720 version => "number",
721 version_type => "enum",
722 },
723 },
724  
725 'ping' => {
726 doc => "",
727 method => "HEAD",
728 parts => {},
729 paths => [ [ {} ] ],
730 qs => {
731 error_trace => "boolean",
732 filter_path => "list",
733 human => "boolean"
734 },
735 },
736  
737 'put_script' => {
738 body => { required => 1 },
739 doc => "modules-scripting",
740 method => "PUT",
741 parts => { id => { required => 1 }, lang => { required => 1 } },
742 paths => [
743 [ { id => 2, lang => 1 }, "_scripts", "{lang}", "{id}" ],
744 [ { lang => 1 }, "_scripts", "{lang}" ],
745 ],
746 qs => {
747 error_trace => "boolean",
748 filter_path => "list",
749 human => "boolean",
750 master_timeout => "time",
751 timeout => "time",
752 },
753 },
754  
755 'put_template' => {
756 body => { required => 1 },
757 doc => "search-template",
758 method => "PUT",
759 parts => { id => { required => 1 } },
760 paths => [ [ { id => 2 }, "_search", "template", "{id}" ] ],
761 qs => {
762 error_trace => "boolean",
763 filter_path => "list",
764 human => "boolean"
765 },
766 },
767  
768 'reindex' => {
769 body => { required => 1 },
770 doc => "docs-reindex",
771 method => "POST",
772 parts => {},
773 paths => [ [ {}, "_reindex" ] ],
774 qs => {
775 error_trace => "boolean",
776 filter_path => "list",
777 human => "boolean",
778 refresh => "boolean",
779 requests_per_second => "number",
780 slices => "number",
781 timeout => "time",
782 wait_for_active_shards => "string",
783 wait_for_completion => "boolean",
784 },
785 },
786  
787 'reindex_rethrottle' => {
788 doc => "docs-reindex",
789 method => "POST",
790 parts => { task_id => {} },
791 paths =>
792 [ [ { task_id => 1 }, "_reindex", "{task_id}", "_rethrottle" ] ],
793 qs => {
794 error_trace => "boolean",
795 filter_path => "list",
796 human => "boolean",
797 requests_per_second => "number",
798 },
799 },
800  
801 'render_search_template' => {
802 body => {},
803 doc => "search-template",
804 parts => { id => {} },
805 paths => [
806 [ { id => 2 }, "_render", "template", "{id}" ],
807 [ {}, "_render", "template" ],
808 ],
809 qs => {
810 error_trace => "boolean",
811 filter_path => "list",
812 human => "boolean"
813 },
814 },
815  
816 'scroll' => {
817 body => {},
818 doc => "search-request-scroll",
819 parts => { scroll_id => {} },
820 paths => [
821 [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ],
822 [ {}, "_search", "scroll" ],
823 ],
824 qs => {
825 error_trace => "boolean",
826 filter_path => "list",
827 human => "boolean",
828 scroll => "time",
829 },
830 },
831  
832 'search' => {
833 body => {},
834 doc => "search-search",
835 parts => { index => { multi => 1 }, type => { multi => 1 } },
836 paths => [
837 [ { index => 0, type => 1 }, "{index}", "{type}", "_search" ],
838 [ { index => 0 }, "{index}", "_search" ],
839 [ {}, "_search" ],
840 ],
841 qs => {
842 _source => "list",
843 _source_exclude => "list",
844 _source_include => "list",
845 allow_no_indices => "boolean",
846 analyze_wildcard => "boolean",
847 analyzer => "string",
848 batched_reduce_size => "number",
849 default_operator => "enum",
850 df => "string",
851 docvalue_fields => "list",
852 error_trace => "boolean",
853 expand_wildcards => "enum",
854 explain => "boolean",
855 fielddata_fields => "list",
856 filter_path => "list",
857 from => "number",
858 human => "boolean",
859 ignore_unavailable => "boolean",
860 lenient => "boolean",
861 max_concurrent_shard_requests => "number",
862 pre_filter_shard_size => "number",
863 preference => "string",
864 q => "string",
865 request_cache => "boolean",
866 routing => "list",
867 scroll => "time",
868 search_type => "enum",
869 size => "number",
870 sort => "list",
871 stats => "list",
872 stored_fields => "list",
873 suggest_field => "string",
874 suggest_mode => "enum",
875 suggest_size => "number",
876 suggest_text => "string",
877 terminate_after => "number",
878 timeout => "time",
879 track_scores => "boolean",
880 typed_keys => "boolean",
881 version => "boolean",
882 },
883 },
884  
885 'search_shards' => {
886 doc => "search-shards",
887 parts => { index => { multi => 1 }, type => { multi => 1 } },
888 paths => [
889 [ { index => 0, type => 1 }, "{index}",
890 "{type}", "_search_shards",
891 ],
892 [ { index => 0 }, "{index}", "_search_shards" ],
893 [ {}, "_search_shards" ],
894 ],
895 qs => {
896 allow_no_indices => "boolean",
897 error_trace => "boolean",
898 expand_wildcards => "enum",
899 filter_path => "list",
900 human => "boolean",
901 ignore_unavailable => "boolean",
902 local => "boolean",
903 preference => "string",
904 routing => "string",
905 },
906 },
907  
908 'search_template' => {
909 body => {},
910 doc => "search-template",
911 parts => { index => { multi => 1 }, type => { multi => 1 } },
912 paths => [
913 [ { index => 0, type => 1 }, "{index}",
914 "{type}", "_search",
915 "template",
916 ],
917 [ { index => 0 }, "{index}", "_search", "template" ],
918 [ {}, "_search", "template" ],
919 ],
920 qs => {
921 allow_no_indices => "boolean",
922 error_trace => "boolean",
923 expand_wildcards => "enum",
924 explain => "boolean",
925 filter_path => "list",
926 human => "boolean",
927 ignore_unavailable => "boolean",
928 preference => "string",
929 profile => "boolean",
930 routing => "list",
931 scroll => "time",
932 search_type => "enum",
933 typed_keys => "boolean",
934 },
935 },
936  
937 'suggest' => {
938 body => { required => 1 },
939 doc => "search-suggesters",
940 method => "POST",
941 parts => { index => { multi => 1 } },
942 paths =>
943 [ [ { index => 0 }, "{index}", "_suggest" ], [ {}, "_suggest" ] ],
944 qs => {
945 allow_no_indices => "boolean",
946 error_trace => "boolean",
947 expand_wildcards => "enum",
948 filter_path => "list",
949 human => "boolean",
950 ignore_unavailable => "boolean",
951 preference => "string",
952 routing => "string",
953 },
954 },
955  
956 'termvectors' => {
957 body => {},
958 doc => "docs-termvectors",
959 parts => {
960 id => {},
961 index => { required => 1 },
962 type => { required => 1 }
963 },
964 paths => [
965 [ { id => 2, index => 0, type => 1 }, "{index}",
966 "{type}", "{id}",
967 "_termvectors",
968 ],
969 [ { index => 0, type => 1 }, "{index}", "{type}",
970 "_termvectors"
971 ],
972 ],
973 qs => {
974 error_trace => "boolean",
975 field_statistics => "boolean",
976 fields => "list",
977 filter_path => "list",
978 human => "boolean",
979 offsets => "boolean",
980 parent => "string",
981 payloads => "boolean",
982 positions => "boolean",
983 preference => "string",
984 realtime => "boolean",
985 routing => "string",
986 term_statistics => "boolean",
987 version => "number",
988 version_type => "enum",
989 },
990 },
991  
992 'update' => {
993 body => {},
994 doc => "docs-update",
995 method => "POST",
996 parts => {
997 id => { required => 1 },
998 index => { required => 1 },
999 type => { required => 1 },
1000 },
1001 paths => [
1002 [ { id => 2, index => 0, type => 1 },
1003 "{index}", "{type}", "{id}", "_update",
1004 ],
1005 ],
1006 qs => {
1007 _source => "list",
1008 _source_exclude => "list",
1009 _source_include => "list",
1010 error_trace => "boolean",
1011 fields => "list",
1012 filter_path => "list",
1013 human => "boolean",
1014 lang => "string",
1015 parent => "string",
1016 refresh => "enum",
1017 retry_on_conflict => "number",
1018 routing => "string",
1019 timeout => "time",
1020 timestamp => "time",
1021 ttl => "time",
1022 version => "number",
1023 version_type => "enum",
1024 wait_for_active_shards => "string",
1025 },
1026 },
1027  
1028 'update_by_query' => {
1029 body => {},
1030 doc => "docs-update-by-query",
1031 method => "POST",
1032 parts => {
1033 index => { multi => 1, required => 1 },
1034 type => { multi => 1 }
1035 },
1036 paths => [
1037 [ { index => 0, type => 1 }, "{index}",
1038 "{type}", "_update_by_query",
1039 ],
1040 [ { index => 0 }, "{index}", "_update_by_query" ],
1041 ],
1042 qs => {
1043 _source => "list",
1044 _source_exclude => "list",
1045 _source_include => "list",
1046 allow_no_indices => "boolean",
1047 analyze_wildcard => "boolean",
1048 analyzer => "string",
1049 conflicts => "enum",
1050 default_operator => "enum",
1051 df => "string",
1052 error_trace => "boolean",
1053 expand_wildcards => "enum",
1054 filter_path => "list",
1055 from => "number",
1056 human => "boolean",
1057 ignore_unavailable => "boolean",
1058 lenient => "boolean",
1059 pipeline => "string",
1060 preference => "string",
1061 q => "string",
1062 refresh => "boolean",
1063 request_cache => "boolean",
1064 requests_per_second => "number",
1065 routing => "list",
1066 scroll => "time",
1067 scroll_size => "number",
1068 search_timeout => "time",
1069 search_type => "enum",
1070 size => "number",
1071 slices => "number",
1072 sort => "list",
1073 stats => "list",
1074 terminate_after => "number",
1075 timeout => "time",
1076 version => "boolean",
1077 version_type => "boolean",
1078 wait_for_active_shards => "string",
1079 wait_for_completion => "boolean",
1080 },
1081 },
1082  
1083 'cat.aliases' => {
1084 doc => "cat-alias",
1085 parts => { name => { multi => 1 } },
1086 paths => [
1087 [ { name => 2 }, "_cat", "aliases", "{name}" ],
1088 [ {}, "_cat", "aliases" ],
1089 ],
1090 qs => {
1091 error_trace => "boolean",
1092 filter_path => "list",
1093 format => "string",
1094 h => "list",
1095 help => "boolean",
1096 human => "boolean",
1097 local => "boolean",
1098 master_timeout => "time",
1099 s => "list",
1100 v => "boolean",
1101 },
1102 },
1103  
1104 'cat.allocation' => {
1105 doc => "cat-allocation",
1106 parts => { node_id => { multi => 1 } },
1107 paths => [
1108 [ { node_id => 2 }, "_cat", "allocation", "{node_id}" ],
1109 [ {}, "_cat", "allocation" ],
1110 ],
1111 qs => {
1112 bytes => "enum",
1113 error_trace => "boolean",
1114 filter_path => "list",
1115 format => "string",
1116 h => "list",
1117 help => "boolean",
1118 human => "boolean",
1119 local => "boolean",
1120 master_timeout => "time",
1121 s => "list",
1122 v => "boolean",
1123 },
1124 },
1125  
1126 'cat.count' => {
1127 doc => "cat-count",
1128 parts => { index => { multi => 1 } },
1129 paths => [
1130 [ { index => 2 }, "_cat", "count", "{index}" ],
1131 [ {}, "_cat", "count" ],
1132 ],
1133 qs => {
1134 error_trace => "boolean",
1135 filter_path => "list",
1136 format => "string",
1137 h => "list",
1138 help => "boolean",
1139 human => "boolean",
1140 local => "boolean",
1141 master_timeout => "time",
1142 s => "list",
1143 v => "boolean",
1144 },
1145 },
1146  
1147 'cat.fielddata' => {
1148 doc => "cat-fielddata",
1149 parts => { fields => { multi => 1 } },
1150 paths => [
1151 [ { fields => 2 }, "_cat", "fielddata", "{fields}" ],
1152 [ {}, "_cat", "fielddata" ],
1153 ],
1154 qs => {
1155 bytes => "enum",
1156 error_trace => "boolean",
1157 filter_path => "list",
1158 format => "string",
1159 h => "list",
1160 help => "boolean",
1161 human => "boolean",
1162 local => "boolean",
1163 master_timeout => "time",
1164 s => "list",
1165 v => "boolean",
1166 },
1167 },
1168  
1169 'cat.health' => {
1170 doc => "cat-health",
1171 parts => {},
1172 paths => [ [ {}, "_cat", "health" ] ],
1173 qs => {
1174 error_trace => "boolean",
1175 filter_path => "list",
1176 format => "string",
1177 h => "list",
1178 help => "boolean",
1179 human => "boolean",
1180 local => "boolean",
1181 master_timeout => "time",
1182 s => "list",
1183 ts => "boolean",
1184 v => "boolean",
1185 },
1186 },
1187  
1188 'cat.help' => {
1189 doc => "cat",
1190 parts => {},
1191 paths => [ [ {}, "_cat" ] ],
1192 qs => {
1193 error_trace => "boolean",
1194 filter_path => "list",
1195 help => "boolean",
1196 human => "boolean",
1197 s => "list",
1198 },
1199 },
1200  
1201 'cat.indices' => {
1202 doc => "cat-indices",
1203 parts => { index => { multi => 1 } },
1204 paths => [
1205 [ { index => 2 }, "_cat", "indices", "{index}" ],
1206 [ {}, "_cat", "indices" ],
1207 ],
1208 qs => {
1209 bytes => "enum",
1210 error_trace => "boolean",
1211 filter_path => "list",
1212 format => "string",
1213 h => "list",
1214 health => "enum",
1215 help => "boolean",
1216 human => "boolean",
1217 local => "boolean",
1218 master_timeout => "time",
1219 pri => "boolean",
1220 s => "list",
1221 v => "boolean",
1222 },
1223 },
1224  
1225 'cat.master' => {
1226 doc => "cat-master",
1227 parts => {},
1228 paths => [ [ {}, "_cat", "master" ] ],
1229 qs => {
1230 error_trace => "boolean",
1231 filter_path => "list",
1232 format => "string",
1233 h => "list",
1234 help => "boolean",
1235 human => "boolean",
1236 local => "boolean",
1237 master_timeout => "time",
1238 s => "list",
1239 v => "boolean",
1240 },
1241 },
1242  
1243 'cat.nodeattrs' => {
1244 doc => "cat-nodeattrs",
1245 parts => {},
1246 paths => [ [ {}, "_cat", "nodeattrs" ] ],
1247 qs => {
1248 error_trace => "boolean",
1249 filter_path => "list",
1250 format => "string",
1251 h => "list",
1252 help => "boolean",
1253 human => "boolean",
1254 local => "boolean",
1255 master_timeout => "time",
1256 s => "list",
1257 v => "boolean",
1258 },
1259 },
1260  
1261 'cat.nodes' => {
1262 doc => "cat-nodes",
1263 parts => {},
1264 paths => [ [ {}, "_cat", "nodes" ] ],
1265 qs => {
1266 error_trace => "boolean",
1267 filter_path => "list",
1268 format => "string",
1269 full_id => "boolean",
1270 h => "list",
1271 help => "boolean",
1272 human => "boolean",
1273 local => "boolean",
1274 master_timeout => "time",
1275 s => "list",
1276 v => "boolean",
1277 },
1278 },
1279  
1280 'cat.pending_tasks' => {
1281 doc => "cat-pending-tasks",
1282 parts => {},
1283 paths => [ [ {}, "_cat", "pending_tasks" ] ],
1284 qs => {
1285 error_trace => "boolean",
1286 filter_path => "list",
1287 format => "string",
1288 h => "list",
1289 help => "boolean",
1290 human => "boolean",
1291 local => "boolean",
1292 master_timeout => "time",
1293 s => "list",
1294 v => "boolean",
1295 },
1296 },
1297  
1298 'cat.plugins' => {
1299 doc => "cat-plugins",
1300 parts => {},
1301 paths => [ [ {}, "_cat", "plugins" ] ],
1302 qs => {
1303 error_trace => "boolean",
1304 filter_path => "list",
1305 format => "string",
1306 h => "list",
1307 help => "boolean",
1308 human => "boolean",
1309 local => "boolean",
1310 master_timeout => "time",
1311 s => "list",
1312 v => "boolean",
1313 },
1314 },
1315  
1316 'cat.recovery' => {
1317 doc => "cat-recovery",
1318 parts => { index => { multi => 1 } },
1319 paths => [
1320 [ { index => 2 }, "_cat", "recovery", "{index}" ],
1321 [ {}, "_cat", "recovery" ],
1322 ],
1323 qs => {
1324 bytes => "enum",
1325 error_trace => "boolean",
1326 filter_path => "list",
1327 format => "string",
1328 h => "list",
1329 help => "boolean",
1330 human => "boolean",
1331 master_timeout => "time",
1332 s => "list",
1333 v => "boolean",
1334 },
1335 },
1336  
1337 'cat.repositories' => {
1338 doc => "cat-repositories",
1339 parts => {},
1340 paths => [ [ {}, "_cat", "repositories" ] ],
1341 qs => {
1342 error_trace => "boolean",
1343 filter_path => "list",
1344 format => "string",
1345 h => "list",
1346 help => "boolean",
1347 human => "boolean",
1348 local => "boolean",
1349 master_timeout => "time",
1350 s => "list",
1351 v => "boolean",
1352 },
1353 },
1354  
1355 'cat.segments' => {
1356 doc => "cat-segments",
1357 parts => { index => { multi => 1 } },
1358 paths => [
1359 [ { index => 2 }, "_cat", "segments", "{index}" ],
1360 [ {}, "_cat", "segments" ],
1361 ],
1362 qs => {
1363 bytes => "enum",
1364 error_trace => "boolean",
1365 filter_path => "list",
1366 format => "string",
1367 h => "list",
1368 help => "boolean",
1369 human => "boolean",
1370 s => "list",
1371 v => "boolean",
1372 },
1373 },
1374  
1375 'cat.shards' => {
1376 doc => "cat-shards",
1377 parts => { index => { multi => 1 } },
1378 paths => [
1379 [ { index => 2 }, "_cat", "shards", "{index}" ],
1380 [ {}, "_cat", "shards" ],
1381 ],
1382 qs => {
1383 bytes => "enum",
1384 error_trace => "boolean",
1385 filter_path => "list",
1386 format => "string",
1387 h => "list",
1388 help => "boolean",
1389 human => "boolean",
1390 local => "boolean",
1391 master_timeout => "time",
1392 s => "list",
1393 v => "boolean",
1394 },
1395 },
1396  
1397 'cat.snapshots' => {
1398 doc => "cat-snapshots",
1399 parts => { repository => { multi => 1, required => 1 } },
1400 paths => [
1401 [ { repository => 2 }, "_cat", "snapshots", "{repository}" ],
1402 [ {}, "_cat", "snapshots" ],
1403 ],
1404 qs => {
1405 error_trace => "boolean",
1406 filter_path => "list",
1407 format => "string",
1408 h => "list",
1409 help => "boolean",
1410 human => "boolean",
1411 ignore_unavailable => "boolean",
1412 master_timeout => "time",
1413 s => "list",
1414 v => "boolean",
1415 },
1416 },
1417  
1418 'cat.tasks' => {
1419 doc => "tasks",
1420 parts => {},
1421 paths => [ [ {}, "_cat", "tasks" ] ],
1422 qs => {
1423 actions => "list",
1424 detailed => "boolean",
1425 error_trace => "boolean",
1426 filter_path => "list",
1427 format => "string",
1428 h => "list",
1429 help => "boolean",
1430 human => "boolean",
1431 node_id => "list",
1432 parent_node => "string",
1433 parent_task => "number",
1434 s => "list",
1435 v => "boolean",
1436 },
1437 },
1438  
1439 'cat.templates' => {
1440 doc => "cat-templates",
1441 parts => { name => {} },
1442 paths => [
1443 [ { name => 2 }, "_cat", "templates", "{name}" ],
1444 [ {}, "_cat", "templates" ],
1445 ],
1446 qs => {
1447 error_trace => "boolean",
1448 filter_path => "list",
1449 format => "string",
1450 h => "list",
1451 help => "boolean",
1452 human => "boolean",
1453 local => "boolean",
1454 master_timeout => "time",
1455 s => "list",
1456 v => "boolean",
1457 },
1458 },
1459  
1460 'cat.thread_pool' => {
1461 doc => "cat-thread-pool",
1462 parts => { thread_pool_patterns => { multi => 1 } },
1463 paths => [
1464 [ { thread_pool_patterns => 2 }, "_cat",
1465 "thread_pool", "{thread_pool_patterns}",
1466 ],
1467 [ {}, "_cat", "thread_pool" ],
1468 ],
1469 qs => {
1470 error_trace => "boolean",
1471 filter_path => "list",
1472 format => "string",
1473 h => "list",
1474 help => "boolean",
1475 human => "boolean",
1476 local => "boolean",
1477 master_timeout => "time",
1478 s => "list",
1479 size => "enum",
1480 v => "boolean",
1481 },
1482 },
1483  
1484 'cluster.allocation_explain' => {
1485 body => {},
1486 doc => "cluster-allocation-explain",
1487 parts => {},
1488 paths => [ [ {}, "_cluster", "allocation", "explain" ] ],
1489 qs => {
1490 error_trace => "boolean",
1491 filter_path => "list",
1492 human => "boolean",
1493 include_disk_info => "boolean",
1494 include_yes_decisions => "boolean",
1495 },
1496 },
1497  
1498 'cluster.get_settings' => {
1499 doc => "cluster-update-settings",
1500 parts => {},
1501 paths => [ [ {}, "_cluster", "settings" ] ],
1502 qs => {
1503 error_trace => "boolean",
1504 filter_path => "list",
1505 flat_settings => "boolean",
1506 human => "boolean",
1507 include_defaults => "boolean",
1508 master_timeout => "time",
1509 timeout => "time",
1510 },
1511 },
1512  
1513 'cluster.health' => {
1514 doc => "cluster-health",
1515 parts => { index => { multi => 1 } },
1516 paths => [
1517 [ { index => 2 }, "_cluster", "health", "{index}" ],
1518 [ {}, "_cluster", "health" ],
1519 ],
1520 qs => {
1521 error_trace => "boolean",
1522 filter_path => "list",
1523 human => "boolean",
1524 level => "enum",
1525 local => "boolean",
1526 master_timeout => "time",
1527 timeout => "time",
1528 wait_for_active_shards => "string",
1529 wait_for_events => "enum",
1530 wait_for_no_relocating_shards => "boolean",
1531 wait_for_nodes => "string",
1532 wait_for_status => "enum",
1533 },
1534 },
1535  
1536 'cluster.pending_tasks' => {
1537 doc => "cluster-pending",
1538 parts => {},
1539 paths => [ [ {}, "_cluster", "pending_tasks" ] ],
1540 qs => {
1541 error_trace => "boolean",
1542 filter_path => "list",
1543 human => "boolean",
1544 local => "boolean",
1545 master_timeout => "time",
1546 },
1547 },
1548  
1549 'cluster.put_settings' => {
1550 body => {},
1551 doc => "cluster-update-settings",
1552 method => "PUT",
1553 parts => {},
1554 paths => [ [ {}, "_cluster", "settings" ] ],
1555 qs => {
1556 error_trace => "boolean",
1557 filter_path => "list",
1558 flat_settings => "boolean",
1559 human => "boolean",
1560 master_timeout => "time",
1561 timeout => "time",
1562 },
1563 },
1564  
1565 'cluster.reroute' => {
1566 body => {},
1567 doc => "cluster-reroute",
1568 method => "POST",
1569 parts => {},
1570 paths => [ [ {}, "_cluster", "reroute" ] ],
1571 qs => {
1572 dry_run => "boolean",
1573 error_trace => "boolean",
1574 explain => "boolean",
1575 filter_path => "list",
1576 human => "boolean",
1577 master_timeout => "time",
1578 metric => "list",
1579 retry_failed => "boolean",
1580 timeout => "time",
1581 },
1582 },
1583  
1584 'cluster.state' => {
1585 doc => "cluster-state",
1586 parts => { index => { multi => 1 }, metric => { multi => 1 } },
1587 paths => [
1588 [ { index => 3, metric => 2 }, "_cluster",
1589 "state", "{metric}",
1590 "{index}",
1591 ],
1592 [ { metric => 2 }, "_cluster", "state", "{metric}" ],
1593 [ {}, "_cluster", "state" ],
1594 ],
1595 qs => {
1596 allow_no_indices => "boolean",
1597 error_trace => "boolean",
1598 expand_wildcards => "enum",
1599 filter_path => "list",
1600 flat_settings => "boolean",
1601 human => "boolean",
1602 ignore_unavailable => "boolean",
1603 local => "boolean",
1604 master_timeout => "time",
1605 },
1606 },
1607  
1608 'cluster.stats' => {
1609 doc => "cluster-stats",
1610 parts => { node_id => { multi => 1 } },
1611 paths => [
1612 [ { node_id => 3 }, "_cluster", "stats", "nodes", "{node_id}" ],
1613 [ {}, "_cluster", "stats" ],
1614 ],
1615 qs => {
1616 error_trace => "boolean",
1617 filter_path => "list",
1618 flat_settings => "boolean",
1619 human => "boolean",
1620 timeout => "time",
1621 },
1622 },
1623  
1624 'indices.analyze' => {
1625 body => {},
1626 doc => "indices-analyze",
1627 parts => { index => {} },
1628 paths =>
1629 [ [ { index => 0 }, "{index}", "_analyze" ], [ {}, "_analyze" ] ],
1630 qs => {
1631 analyzer => "string",
1632 attributes => "list",
1633 char_filter => "list",
1634 error_trace => "boolean",
1635 explain => "boolean",
1636 field => "string",
1637 filter => "list",
1638 filter_path => "list",
1639 format => "enum",
1640 human => "boolean",
1641 prefer_local => "boolean",
1642 text => "list",
1643 tokenizer => "string",
1644 },
1645 },
1646  
1647 'indices.clear_cache' => {
1648 doc => "indices-clearcache",
1649 method => "POST",
1650 parts => { index => { multi => 1 } },
1651 paths => [
1652 [ { index => 0 }, "{index}", "_cache", "clear" ],
1653 [ {}, "_cache", "clear" ],
1654 ],
1655 qs => {
1656 allow_no_indices => "boolean",
1657 error_trace => "boolean",
1658 expand_wildcards => "enum",
1659 fielddata => "boolean",
1660 fields => "list",
1661 filter_path => "list",
1662 human => "boolean",
1663 ignore_unavailable => "boolean",
1664 query => "boolean",
1665 recycler => "boolean",
1666 request => "boolean",
1667 request_cache => "boolean",
1668 },
1669 },
1670  
1671 'indices.close' => {
1672 doc => "indices-open-close",
1673 method => "POST",
1674 parts => { index => { multi => 1, required => 1 } },
1675 paths => [ [ { index => 0 }, "{index}", "_close" ] ],
1676 qs => {
1677 allow_no_indices => "boolean",
1678 error_trace => "boolean",
1679 expand_wildcards => "enum",
1680 filter_path => "list",
1681 human => "boolean",
1682 ignore_unavailable => "boolean",
1683 master_timeout => "time",
1684 timeout => "time",
1685 },
1686 },
1687  
1688 'indices.create' => {
1689 body => {},
1690 doc => "indices-create-index",
1691 method => "PUT",
1692 parts => { index => { required => 1 } },
1693 paths => [ [ { index => 0 }, "{index}" ] ],
1694 qs => {
1695 error_trace => "boolean",
1696 filter_path => "list",
1697 human => "boolean",
1698 master_timeout => "time",
1699 timeout => "time",
1700 update_all_types => "boolean",
1701 wait_for_active_shards => "string",
1702 },
1703 },
1704  
1705 'indices.delete' => {
1706 doc => "indices-delete-index",
1707 method => "DELETE",
1708 parts => { index => { multi => 1, required => 1 } },
1709 paths => [ [ { index => 0 }, "{index}" ] ],
1710 qs => {
1711 error_trace => "boolean",
1712 filter_path => "list",
1713 human => "boolean",
1714 master_timeout => "time",
1715 timeout => "time",
1716 },
1717 },
1718  
1719 'indices.delete_alias' => {
1720 doc => "indices-aliases",
1721 method => "DELETE",
1722 parts => {
1723 index => { multi => 1, required => 1 },
1724 name => { multi => 1, required => 1 },
1725 },
1726 paths =>
1727 [ [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ] ],
1728 qs => {
1729 error_trace => "boolean",
1730 filter_path => "list",
1731 human => "boolean",
1732 master_timeout => "time",
1733 timeout => "time",
1734 },
1735 },
1736  
1737 'indices.delete_template' => {
1738 doc => "indices-templates",
1739 method => "DELETE",
1740 parts => { name => { required => 1 } },
1741 paths => [ [ { name => 1 }, "_template", "{name}" ] ],
1742 qs => {
1743 error_trace => "boolean",
1744 filter_path => "list",
1745 human => "boolean",
1746 master_timeout => "time",
1747 timeout => "time",
1748 },
1749 },
1750  
1751 'indices.exists' => {
1752 doc => "indices-exists",
1753 method => "HEAD",
1754 parts => { index => { multi => 1, required => 1 } },
1755 paths => [ [ { index => 0 }, "{index}" ] ],
1756 qs => {
1757 allow_no_indices => "boolean",
1758 error_trace => "boolean",
1759 expand_wildcards => "enum",
1760 filter_path => "list",
1761 flat_settings => "boolean",
1762 human => "boolean",
1763 ignore_unavailable => "boolean",
1764 include_defaults => "boolean",
1765 local => "boolean",
1766 },
1767 },
1768  
1769 'indices.exists_alias' => {
1770 doc => "indices-aliases",
1771 method => "HEAD",
1772 parts => { index => { multi => 1 }, name => { multi => 1 } },
1773 paths => [
1774 [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ],
1775 [ { name => 1 }, "_alias", "{name}" ],
1776 ],
1777 qs => {
1778 allow_no_indices => "boolean",
1779 error_trace => "boolean",
1780 expand_wildcards => "enum",
1781 filter_path => "list",
1782 human => "boolean",
1783 ignore_unavailable => "boolean",
1784 local => "boolean",
1785 },
1786 },
1787  
1788 'indices.exists_template' => {
1789 doc => "indices-templates",
1790 method => "HEAD",
1791 parts => { name => { multi => 1, required => 1 } },
1792 paths => [ [ { name => 1 }, "_template", "{name}" ] ],
1793 qs => {
1794 error_trace => "boolean",
1795 filter_path => "list",
1796 flat_settings => "boolean",
1797 human => "boolean",
1798 local => "boolean",
1799 master_timeout => "time",
1800 },
1801 },
1802  
1803 'indices.exists_type' => {
1804 doc => "indices-types-exists",
1805 method => "HEAD",
1806 parts => {
1807 index => { multi => 1, required => 1 },
1808 type => { multi => 1, required => 1 },
1809 },
1810 paths => [
1811 [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ]
1812 ],
1813 qs => {
1814 allow_no_indices => "boolean",
1815 error_trace => "boolean",
1816 expand_wildcards => "enum",
1817 filter_path => "list",
1818 human => "boolean",
1819 ignore_unavailable => "boolean",
1820 local => "boolean",
1821 },
1822 },
1823  
1824 'indices.flush' => {
1825 doc => "indices-flush",
1826 method => "POST",
1827 parts => { index => { multi => 1 } },
1828 paths =>
1829 [ [ { index => 0 }, "{index}", "_flush" ], [ {}, "_flush" ] ],
1830 qs => {
1831 allow_no_indices => "boolean",
1832 error_trace => "boolean",
1833 expand_wildcards => "enum",
1834 filter_path => "list",
1835 force => "boolean",
1836 human => "boolean",
1837 ignore_unavailable => "boolean",
1838 wait_if_ongoing => "boolean",
1839 },
1840 },
1841  
1842 'indices.flush_synced' => {
1843 doc => "indices-synced-flush",
1844 method => "POST",
1845 parts => { index => { multi => 1 } },
1846 paths => [
1847 [ { index => 0 }, "{index}", "_flush", "synced" ],
1848 [ {}, "_flush", "synced" ],
1849 ],
1850 qs => {
1851 allow_no_indices => "boolean",
1852 error_trace => "boolean",
1853 expand_wildcards => "enum",
1854 filter_path => "list",
1855 human => "boolean",
1856 ignore_unavailable => "boolean",
1857 },
1858 },
1859  
1860 'indices.forcemerge' => {
1861 doc => "indices-forcemerge",
1862 method => "POST",
1863 parts => { index => { multi => 1 } },
1864 paths => [
1865 [ { index => 0 }, "{index}", "_forcemerge" ],
1866 [ {}, "_forcemerge" ],
1867 ],
1868 qs => {
1869 allow_no_indices => "boolean",
1870 error_trace => "boolean",
1871 expand_wildcards => "enum",
1872 filter_path => "list",
1873 flush => "boolean",
1874 human => "boolean",
1875 ignore_unavailable => "boolean",
1876 max_num_segments => "number",
1877 only_expunge_deletes => "boolean",
1878 wait_for_merge => "boolean",
1879 },
1880 },
1881  
1882 'indices.get' => {
1883 doc => "indices-get-index",
1884 parts => {
1885 feature => { multi => 1 },
1886 index => { multi => 1, required => 1 }
1887 },
1888 paths => [
1889 [ { feature => 1, index => 0 }, "{index}", "{feature}" ],
1890 [ { index => 0 }, "{index}" ],
1891 ],
1892 qs => {
1893 allow_no_indices => "boolean",
1894 error_trace => "boolean",
1895 expand_wildcards => "enum",
1896 filter_path => "list",
1897 flat_settings => "boolean",
1898 human => "boolean",
1899 ignore_unavailable => "boolean",
1900 include_defaults => "boolean",
1901 local => "boolean",
1902 },
1903 },
1904  
1905 'indices.get_alias' => {
1906 doc => "indices-aliases",
1907 parts => { index => { multi => 1 }, name => { multi => 1 } },
1908 paths => [
1909 [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ],
1910 [ { index => 0 }, "{index}", "_alias" ],
1911 [ { name => 1 }, "_alias", "{name}" ],
1912 [ {}, "_alias" ],
1913 ],
1914 qs => {
1915 allow_no_indices => "boolean",
1916 error_trace => "boolean",
1917 expand_wildcards => "enum",
1918 filter_path => "list",
1919 human => "boolean",
1920 ignore_unavailable => "boolean",
1921 local => "boolean",
1922 },
1923 },
1924  
1925 'indices.get_field_mapping' => {
1926 doc => "indices-get-field-mapping",
1927 parts => {
1928 fields => { multi => 1, required => 1 },
1929 index => { multi => 1 },
1930 type => { multi => 1 },
1931 },
1932 paths => [
1933 [ { fields => 4, index => 0, type => 2 }, "{index}",
1934 "_mapping", "{type}",
1935 "field", "{fields}",
1936 ],
1937 [ { fields => 3, index => 0 }, "{index}",
1938 "_mapping", "field",
1939 "{fields}",
1940 ],
1941 [ { fields => 3, type => 1 }, "_mapping",
1942 "{type}", "field",
1943 "{fields}",
1944 ],
1945 [ { fields => 2 }, "_mapping", "field", "{fields}" ],
1946 ],
1947 qs => {
1948 allow_no_indices => "boolean",
1949 error_trace => "boolean",
1950 expand_wildcards => "enum",
1951 filter_path => "list",
1952 human => "boolean",
1953 ignore_unavailable => "boolean",
1954 include_defaults => "boolean",
1955 local => "boolean",
1956 },
1957 },
1958  
1959 'indices.get_mapping' => {
1960 doc => "indices-get-mapping",
1961 parts => { index => { multi => 1 }, type => { multi => 1 } },
1962 paths => [
1963 [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ],
1964 [ { index => 0 }, "{index}", "_mapping" ],
1965 [ { type => 1 }, "_mapping", "{type}" ],
1966 [ {}, "_mapping" ],
1967 ],
1968 qs => {
1969 allow_no_indices => "boolean",
1970 error_trace => "boolean",
1971 expand_wildcards => "enum",
1972 filter_path => "list",
1973 human => "boolean",
1974 ignore_unavailable => "boolean",
1975 local => "boolean",
1976 },
1977 },
1978  
1979 'indices.get_settings' => {
1980 doc => "indices-get-settings",
1981 parts => { index => { multi => 1 }, name => { multi => 1 } },
1982 paths => [
1983 [ { index => 0, name => 2 }, "{index}", "_settings", "{name}" ],
1984 [ { index => 0 }, "{index}", "_settings" ],
1985 [ { name => 1 }, "_settings", "{name}" ],
1986 [ {}, "_settings" ],
1987 ],
1988 qs => {
1989 allow_no_indices => "boolean",
1990 error_trace => "boolean",
1991 expand_wildcards => "enum",
1992 filter_path => "list",
1993 flat_settings => "boolean",
1994 human => "boolean",
1995 ignore_unavailable => "boolean",
1996 include_defaults => "boolean",
1997 local => "boolean",
1998 },
1999 },
2000  
2001 'indices.get_template' => {
2002 doc => "indices-templates",
2003 parts => { name => { multi => 1 } },
2004 paths =>
2005 [ [ { name => 1 }, "_template", "{name}" ], [ {}, "_template" ] ],
2006 qs => {
2007 error_trace => "boolean",
2008 filter_path => "list",
2009 flat_settings => "boolean",
2010 human => "boolean",
2011 local => "boolean",
2012 master_timeout => "time",
2013 },
2014 },
2015  
2016 'indices.get_upgrade' => {
2017 doc => "indices-upgrade",
2018 parts => { index => { multi => 1 } },
2019 paths =>
2020 [ [ { index => 0 }, "{index}", "_upgrade" ], [ {}, "_upgrade" ] ],
2021 qs => {
2022 allow_no_indices => "boolean",
2023 error_trace => "boolean",
2024 expand_wildcards => "enum",
2025 filter_path => "list",
2026 human => "boolean",
2027 ignore_unavailable => "boolean",
2028 },
2029 },
2030  
2031 'indices.open' => {
2032 doc => "indices-open-close",
2033 method => "POST",
2034 parts => { index => { multi => 1, required => 1 } },
2035 paths => [ [ { index => 0 }, "{index}", "_open" ] ],
2036 qs => {
2037 allow_no_indices => "boolean",
2038 error_trace => "boolean",
2039 expand_wildcards => "enum",
2040 filter_path => "list",
2041 human => "boolean",
2042 ignore_unavailable => "boolean",
2043 master_timeout => "time",
2044 timeout => "time",
2045 },
2046 },
2047  
2048 'indices.put_alias' => {
2049 body => {},
2050 doc => "indices-aliases",
2051 method => "PUT",
2052 parts => {
2053 index => { multi => 1, required => 1 },
2054 name => { required => 1 }
2055 },
2056 paths =>
2057 [ [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ] ],
2058 qs => {
2059 error_trace => "boolean",
2060 filter_path => "list",
2061 human => "boolean",
2062 master_timeout => "time",
2063 timeout => "time",
2064 },
2065 },
2066  
2067 'indices.put_mapping' => {
2068 body => { required => 1 },
2069 doc => "indices-put-mapping",
2070 method => "PUT",
2071 parts => { index => { multi => 1 }, type => { required => 1 } },
2072 paths => [
2073 [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ],
2074 [ { type => 1 }, "_mapping", "{type}" ],
2075 ],
2076 qs => {
2077 allow_no_indices => "boolean",
2078 error_trace => "boolean",
2079 expand_wildcards => "enum",
2080 filter_path => "list",
2081 human => "boolean",
2082 ignore_unavailable => "boolean",
2083 master_timeout => "time",
2084 timeout => "time",
2085 update_all_types => "boolean",
2086 },
2087 },
2088  
2089 'indices.put_settings' => {
2090 body => { required => 1 },
2091 doc => "indices-update-settings",
2092 method => "PUT",
2093 parts => { index => { multi => 1 } },
2094 paths => [
2095 [ { index => 0 }, "{index}", "_settings" ],
2096 [ {}, "_settings" ]
2097 ],
2098 qs => {
2099 allow_no_indices => "boolean",
2100 error_trace => "boolean",
2101 expand_wildcards => "enum",
2102 filter_path => "list",
2103 flat_settings => "boolean",
2104 human => "boolean",
2105 ignore_unavailable => "boolean",
2106 master_timeout => "time",
2107 preserve_existing => "boolean",
2108 },
2109 },
2110  
2111 'indices.put_template' => {
2112 body => { required => 1 },
2113 doc => "indices-templates",
2114 method => "PUT",
2115 parts => { name => { required => 1 } },
2116 paths => [ [ { name => 1 }, "_template", "{name}" ] ],
2117 qs => {
2118 create => "boolean",
2119 error_trace => "boolean",
2120 filter_path => "list",
2121 flat_settings => "boolean",
2122 human => "boolean",
2123 master_timeout => "time",
2124 order => "number",
2125 timeout => "time",
2126 },
2127 },
2128  
2129 'indices.recovery' => {
2130 doc => "indices-recovery",
2131 parts => { index => { multi => 1 } },
2132 paths => [
2133 [ { index => 0 }, "{index}", "_recovery" ],
2134 [ {}, "_recovery" ]
2135 ],
2136 qs => {
2137 active_only => "boolean",
2138 detailed => "boolean",
2139 error_trace => "boolean",
2140 filter_path => "list",
2141 human => "boolean",
2142 },
2143 },
2144  
2145 'indices.refresh' => {
2146 doc => "indices-refresh",
2147 method => "POST",
2148 parts => { index => { multi => 1 } },
2149 paths =>
2150 [ [ { index => 0 }, "{index}", "_refresh" ], [ {}, "_refresh" ] ],
2151 qs => {
2152 allow_no_indices => "boolean",
2153 error_trace => "boolean",
2154 expand_wildcards => "enum",
2155 filter_path => "list",
2156 human => "boolean",
2157 ignore_unavailable => "boolean",
2158 },
2159 },
2160  
2161 'indices.rollover' => {
2162 body => {},
2163 doc => "indices-rollover-index",
2164 method => "POST",
2165 parts => { alias => { required => 1 }, new_index => {} },
2166 paths => [
2167 [ { alias => 0, new_index => 2 }, "{alias}",
2168 "_rollover", "{new_index}",
2169 ],
2170 [ { alias => 0 }, "{alias}", "_rollover" ],
2171 ],
2172 qs => {
2173 dry_run => "boolean",
2174 error_trace => "boolean",
2175 filter_path => "list",
2176 human => "boolean",
2177 master_timeout => "time",
2178 timeout => "time",
2179 wait_for_active_shards => "string",
2180 },
2181 },
2182  
2183 'indices.segments' => {
2184 doc => "indices-segments",
2185 parts => { index => { multi => 1 } },
2186 paths => [
2187 [ { index => 0 }, "{index}", "_segments" ],
2188 [ {}, "_segments" ]
2189 ],
2190 qs => {
2191 allow_no_indices => "boolean",
2192 error_trace => "boolean",
2193 expand_wildcards => "enum",
2194 filter_path => "list",
2195 human => "boolean",
2196 ignore_unavailable => "boolean",
2197 verbose => "boolean",
2198 },
2199 },
2200  
2201 'indices.shard_stores' => {
2202 doc => "indices-shards-stores",
2203 parts => { index => { multi => 1 } },
2204 paths => [
2205 [ { index => 0 }, "{index}", "_shard_stores" ],
2206 [ {}, "_shard_stores" ],
2207 ],
2208 qs => {
2209 allow_no_indices => "boolean",
2210 error_trace => "boolean",
2211 expand_wildcards => "enum",
2212 filter_path => "list",
2213 human => "boolean",
2214 ignore_unavailable => "boolean",
2215 status => "list",
2216 },
2217 },
2218  
2219 'indices.shrink' => {
2220 body => {},
2221 doc => "indices-shrink-index",
2222 method => "PUT",
2223 parts => { index => { required => 1 }, target => { required => 1 } },
2224 paths => [
2225 [ { index => 0, target => 2 }, "{index}", "_shrink", "{target}" ],
2226 ],
2227 qs => {
2228 error_trace => "boolean",
2229 filter_path => "list",
2230 human => "boolean",
2231 master_timeout => "time",
2232 timeout => "time",
2233 wait_for_active_shards => "string",
2234 },
2235 },
2236  
2237 'indices.stats' => {
2238 doc => "indices-stats",
2239 parts => { index => { multi => 1 }, metric => { multi => 1 } },
2240 paths => [
2241 [ { index => 0, metric => 2 }, "{index}", "_stats", "{metric}" ],
2242 [ { index => 0 }, "{index}", "_stats" ],
2243 [ { metric => 1 }, "_stats", "{metric}" ],
2244 [ {}, "_stats" ],
2245 ],
2246 qs => {
2247 completion_fields => "list",
2248 error_trace => "boolean",
2249 fielddata_fields => "list",
2250 fields => "list",
2251 filter_path => "list",
2252 groups => "list",
2253 human => "boolean",
2254 include_segment_file_sizes => "boolean",
2255 level => "enum",
2256 types => "list",
2257 },
2258 },
2259  
2260 'indices.update_aliases' => {
2261 body => { required => 1 },
2262 doc => "indices-aliases",
2263 method => "POST",
2264 parts => {},
2265 paths => [ [ {}, "_aliases" ] ],
2266 qs => {
2267 error_trace => "boolean",
2268 filter_path => "list",
2269 human => "boolean",
2270 master_timeout => "time",
2271 timeout => "time",
2272 },
2273 },
2274  
2275 'indices.upgrade' => {
2276 doc => "indices-upgrade",
2277 method => "POST",
2278 parts => { index => { multi => 1 } },
2279 paths =>
2280 [ [ { index => 0 }, "{index}", "_upgrade" ], [ {}, "_upgrade" ] ],
2281 qs => {
2282 allow_no_indices => "boolean",
2283 error_trace => "boolean",
2284 expand_wildcards => "enum",
2285 filter_path => "list",
2286 human => "boolean",
2287 ignore_unavailable => "boolean",
2288 only_ancient_segments => "boolean",
2289 wait_for_completion => "boolean",
2290 },
2291 },
2292  
2293 'indices.validate_query' => {
2294 body => {},
2295 doc => "search-validate",
2296 parts => { index => { multi => 1 }, type => { multi => 1 } },
2297 paths => [
2298 [ { index => 0, type => 1 }, "{index}",
2299 "{type}", "_validate",
2300 "query",
2301 ],
2302 [ { index => 0 }, "{index}", "_validate", "query" ],
2303 [ {}, "_validate", "query" ],
2304 ],
2305 qs => {
2306 all_shards => "boolean",
2307 allow_no_indices => "boolean",
2308 analyze_wildcard => "boolean",
2309 analyzer => "string",
2310 default_operator => "enum",
2311 df => "string",
2312 error_trace => "boolean",
2313 expand_wildcards => "enum",
2314 explain => "boolean",
2315 filter_path => "list",
2316 human => "boolean",
2317 ignore_unavailable => "boolean",
2318 lenient => "boolean",
2319 q => "string",
2320 rewrite => "boolean",
2321 },
2322 },
2323  
2324 'ingest.delete_pipeline' => {
2325 doc => "ingest",
2326 method => "DELETE",
2327 parts => { id => { required => 1 } },
2328 paths => [ [ { id => 2 }, "_ingest", "pipeline", "{id}" ] ],
2329 qs => {
2330 error_trace => "boolean",
2331 filter_path => "list",
2332 human => "boolean",
2333 master_timeout => "time",
2334 timeout => "time",
2335 },
2336 },
2337  
2338 'ingest.get_pipeline' => {
2339 doc => "ingest",
2340 parts => { id => {} },
2341 paths => [
2342 [ { id => 2 }, "_ingest", "pipeline", "{id}" ],
2343 [ {}, "_ingest", "pipeline" ],
2344 ],
2345 qs => {
2346 error_trace => "boolean",
2347 filter_path => "list",
2348 human => "boolean",
2349 master_timeout => "time",
2350 },
2351 },
2352  
2353 'ingest.processor.grok' => {
2354 doc => "ingest",
2355 parts => {},
2356 paths => [ [ {}, "_ingest", "processor", "grok" ] ],
2357 qs => {
2358 error_trace => "boolean",
2359 filter_path => "list",
2360 human => "boolean"
2361 },
2362 },
2363  
2364 'ingest.put_pipeline' => {
2365 body => { required => 1 },
2366 doc => "ingest",
2367 method => "PUT",
2368 parts => { id => { required => 1 } },
2369 paths => [ [ { id => 2 }, "_ingest", "pipeline", "{id}" ] ],
2370 qs => {
2371 error_trace => "boolean",
2372 filter_path => "list",
2373 human => "boolean",
2374 master_timeout => "time",
2375 timeout => "time",
2376 },
2377 },
2378  
2379 'ingest.simulate' => {
2380 body => { required => 1 },
2381 doc => "ingest",
2382 parts => { id => {} },
2383 paths => [
2384 [ { id => 2 }, "_ingest", "pipeline", "{id}", "_simulate" ],
2385 [ {}, "_ingest", "pipeline", "_simulate" ],
2386 ],
2387 qs => {
2388 error_trace => "boolean",
2389 filter_path => "list",
2390 human => "boolean",
2391 verbose => "boolean",
2392 },
2393 },
2394  
2395 'nodes.hot_threads' => {
2396 doc => "cluster-nodes-hot-threads",
2397 parts => { node_id => { multi => 1 } },
2398 paths => [
2399 [ { node_id => 1 }, "_nodes", "{node_id}", "hot_threads" ],
2400 [ {}, "_nodes", "hot_threads" ],
2401 ],
2402 qs => {
2403 error_trace => "boolean",
2404 filter_path => "list",
2405 human => "boolean",
2406 ignore_idle_threads => "boolean",
2407 interval => "time",
2408 snapshots => "number",
2409 threads => "number",
2410 timeout => "time",
2411 type => "enum",
2412 },
2413 },
2414  
2415 'nodes.info' => {
2416 doc => "cluster-nodes-info",
2417 parts => { metric => { multi => 1 }, node_id => { multi => 1 } },
2418 paths => [
2419 [ { metric => 2, node_id => 1 }, "_nodes",
2420 "{node_id}", "{metric}",
2421 ],
2422 [ { metric => 1 }, "_nodes", "{metric}" ],
2423 [ { node_id => 1 }, "_nodes", "{node_id}" ],
2424 [ {}, "_nodes" ],
2425 ],
2426 qs => {
2427 error_trace => "boolean",
2428 filter_path => "list",
2429 flat_settings => "boolean",
2430 human => "boolean",
2431 timeout => "time",
2432 },
2433 },
2434  
2435 'nodes.stats' => {
2436 doc => "cluster-nodes-stats",
2437 parts => {
2438 index_metric => { multi => 1 },
2439 metric => { multi => 1 },
2440 node_id => { multi => 1 },
2441 },
2442 paths => [
2443 [ { index_metric => 4, metric => 3, node_id => 1 },
2444 "_nodes", "{node_id}", "stats", "{metric}", "{index_metric}",
2445 ],
2446 [ { index_metric => 3, metric => 2 }, "_nodes",
2447 "stats", "{metric}",
2448 "{index_metric}",
2449 ],
2450 [ { metric => 3, node_id => 1 }, "_nodes",
2451 "{node_id}", "stats",
2452 "{metric}",
2453 ],
2454 [ { metric => 2 }, "_nodes", "stats", "{metric}" ],
2455 [ { node_id => 1 }, "_nodes", "{node_id}", "stats" ],
2456 [ {}, "_nodes", "stats" ],
2457 ],
2458 qs => {
2459 completion_fields => "list",
2460 error_trace => "boolean",
2461 fielddata_fields => "list",
2462 fields => "list",
2463 filter_path => "list",
2464 groups => "boolean",
2465 human => "boolean",
2466 include_segment_file_sizes => "boolean",
2467 level => "enum",
2468 timeout => "time",
2469 types => "list",
2470 },
2471 },
2472  
2473 'remote.info' => {
2474 doc => "cluster-remote-info",
2475 parts => {},
2476 paths => [ [ {}, "_remote", "info" ] ],
2477 qs => {
2478 error_trace => "boolean",
2479 filter_path => "list",
2480 human => "boolean"
2481 },
2482 },
2483  
2484 'snapshot.create' => {
2485 body => {},
2486 doc => "modules-snapshots",
2487 method => "PUT",
2488 parts => {
2489 repository => { required => 1 },
2490 snapshot => { required => 1 }
2491 },
2492 paths => [
2493 [ { repository => 1, snapshot => 2 }, "_snapshot",
2494 "{repository}", "{snapshot}",
2495 ],
2496 ],
2497 qs => {
2498 error_trace => "boolean",
2499 filter_path => "list",
2500 human => "boolean",
2501 master_timeout => "time",
2502 wait_for_completion => "boolean",
2503 },
2504 },
2505  
2506 'snapshot.create_repository' => {
2507 body => { required => 1 },
2508 doc => "modules-snapshots",
2509 method => "PUT",
2510 parts => { repository => { required => 1 } },
2511 paths => [ [ { repository => 1 }, "_snapshot", "{repository}" ] ],
2512 qs => {
2513 error_trace => "boolean",
2514 filter_path => "list",
2515 human => "boolean",
2516 master_timeout => "time",
2517 timeout => "time",
2518 verify => "boolean",
2519 },
2520 },
2521  
2522 'snapshot.delete' => {
2523 doc => "modules-snapshots",
2524 method => "DELETE",
2525 parts => {
2526 repository => { required => 1 },
2527 snapshot => { required => 1 }
2528 },
2529 paths => [
2530 [ { repository => 1, snapshot => 2 }, "_snapshot",
2531 "{repository}", "{snapshot}",
2532 ],
2533 ],
2534 qs => {
2535 error_trace => "boolean",
2536 filter_path => "list",
2537 human => "boolean",
2538 master_timeout => "time",
2539 },
2540 },
2541  
2542 'snapshot.delete_repository' => {
2543 doc => "modules-snapshots",
2544 method => "DELETE",
2545 parts => { repository => { multi => 1, required => 1 } },
2546 paths => [ [ { repository => 1 }, "_snapshot", "{repository}" ] ],
2547 qs => {
2548 error_trace => "boolean",
2549 filter_path => "list",
2550 human => "boolean",
2551 master_timeout => "time",
2552 timeout => "time",
2553 },
2554 },
2555  
2556 'snapshot.get' => {
2557 doc => "modules-snapshots",
2558 parts => {
2559 repository => { required => 1 },
2560 snapshot => { multi => 1, required => 1 },
2561 },
2562 paths => [
2563 [ { repository => 1, snapshot => 2 }, "_snapshot",
2564 "{repository}", "{snapshot}",
2565 ],
2566 ],
2567 qs => {
2568 error_trace => "boolean",
2569 filter_path => "list",
2570 human => "boolean",
2571 ignore_unavailable => "boolean",
2572 master_timeout => "time",
2573 verbose => "boolean",
2574 },
2575 },
2576  
2577 'snapshot.get_repository' => {
2578 doc => "modules-snapshots",
2579 parts => { repository => { multi => 1 } },
2580 paths => [
2581 [ { repository => 1 }, "_snapshot", "{repository}" ],
2582 [ {}, "_snapshot" ],
2583 ],
2584 qs => {
2585 error_trace => "boolean",
2586 filter_path => "list",
2587 human => "boolean",
2588 local => "boolean",
2589 master_timeout => "time",
2590 },
2591 },
2592  
2593 'snapshot.restore' => {
2594 body => {},
2595 doc => "modules-snapshots",
2596 method => "POST",
2597 parts => {
2598 repository => { required => 1 },
2599 snapshot => { required => 1 }
2600 },
2601 paths => [
2602 [ { repository => 1, snapshot => 2 }, "_snapshot",
2603 "{repository}", "{snapshot}",
2604 "_restore",
2605 ],
2606 ],
2607 qs => {
2608 error_trace => "boolean",
2609 filter_path => "list",
2610 human => "boolean",
2611 master_timeout => "time",
2612 wait_for_completion => "boolean",
2613 },
2614 },
2615  
2616 'snapshot.status' => {
2617 doc => "modules-snapshots",
2618 parts => { repository => {}, snapshot => { multi => 1 } },
2619 paths => [
2620 [ { repository => 1, snapshot => 2 }, "_snapshot",
2621 "{repository}", "{snapshot}",
2622 "_status",
2623 ],
2624 [ { repository => 1 }, "_snapshot", "{repository}", "_status" ],
2625 [ {}, "_snapshot", "_status" ],
2626 ],
2627 qs => {
2628 error_trace => "boolean",
2629 filter_path => "list",
2630 human => "boolean",
2631 ignore_unavailable => "boolean",
2632 master_timeout => "time",
2633 },
2634 },
2635  
2636 'snapshot.verify_repository' => {
2637 doc => "modules-snapshots",
2638 method => "POST",
2639 parts => { repository => { required => 1 } },
2640 paths => [
2641 [ { repository => 1 }, "_snapshot", "{repository}", "_verify" ],
2642 ],
2643 qs => {
2644 error_trace => "boolean",
2645 filter_path => "list",
2646 human => "boolean",
2647 master_timeout => "time",
2648 timeout => "time",
2649 },
2650 },
2651  
2652 'tasks.cancel' => {
2653 doc => "tasks",
2654 method => "POST",
2655 parts => { task_id => {} },
2656 paths => [
2657 [ { task_id => 1 }, "_tasks", "{task_id}", "_cancel" ],
2658 [ {}, "_tasks", "_cancel" ],
2659 ],
2660 qs => {
2661 actions => "list",
2662 error_trace => "boolean",
2663 filter_path => "list",
2664 human => "boolean",
2665 nodes => "list",
2666 parent_node => "string",
2667 parent_task_id => "string",
2668 },
2669 },
2670  
2671 'tasks.get' => {
2672 doc => "tasks",
2673 parts => { task_id => {} },
2674 paths => [ [ { task_id => 1 }, "_tasks", "{task_id}" ] ],
2675 qs => {
2676 error_trace => "boolean",
2677 filter_path => "list",
2678 human => "boolean",
2679 wait_for_completion => "boolean",
2680 },
2681 },
2682  
2683 'tasks.list' => {
2684 doc => "tasks",
2685 parts => {},
2686 paths => [ [ {}, "_tasks" ] ],
2687 qs => {
2688 actions => "list",
2689 detailed => "boolean",
2690 error_trace => "boolean",
2691 filter_path => "list",
2692 group_by => "enum",
2693 human => "boolean",
2694 nodes => "list",
2695 parent_node => "string",
2696 parent_task_id => "string",
2697 wait_for_completion => "boolean",
2698 },
2699 },
2700  
2701 #=== AUTOGEN - END ===
2702  
2703 );
2704  
2705 __PACKAGE__->_qs_init( \%API );
2706 1;
2707  
2708 =pod
2709  
2710 =encoding UTF-8
2711  
2712 =head1 NAME
2713  
2714 Search::Elasticsearch::Client::5_0::Role::API - This class contains the spec for the Elasticsearch APIs
2715  
2716 =head1 VERSION
2717  
2718 version 6.80_1
2719  
2720 =head1 DESCRIPTION
2721  
2722 All of the Elasticsearch APIs are defined in this role. The example given below
2723 is the definition for the L<Search::Elasticsearch::Client::5_0::Direct/index()> method:
2724  
2725 'index' => {
2726 body => { required => 1 },
2727 doc => "docs-index_",
2728 method => "POST",
2729 parts => {
2730 id => {},
2731 index => { required => 1 },
2732 type => { required => 1 }
2733 },
2734 paths => [
2735 [ { id => 2, index => 0, type => 1 }, "{index}",
2736 "{type}", "{id}"
2737 ],
2738 [ { index => 0, type => 1 }, "{index}", "{type}" ],
2739 ],
2740 qs => {
2741 filter_path => "list",
2742 op_type => "enum",
2743 parent => "string",
2744 pipeline => "string",
2745 refresh => "enum",
2746 routing => "string",
2747 timeout => "time",
2748 timestamp => "time",
2749 ttl => "time",
2750 version => "number",
2751 version_type => "enum",
2752 wait_for_active_shards => "string",
2753 },
2754 },
2755  
2756 These definitions can be used by different L<Search::Elasticsearch::Role::Client>
2757 implementations to provide distinct user interfaces.
2758  
2759 =head1 METHODS
2760  
2761 =head2 C<api()>
2762  
2763 $defn = $api->api($name);
2764  
2765 The only method in this class is the C<api()> method which takes the name
2766 of the I<action> and returns its definition. Actions in the
2767 C<indices> or C<cluster> namespace use the namespace as a prefix, eg:
2768  
2769 $defn = $e->api('indices.create');
2770 $defn = $e->api('cluster.node_stats');
2771  
2772 =head1 SEE ALSO
2773  
2774 =over
2775  
2776 =item *
2777  
2778 L<Search::Elasticsearch::Role::API>
2779  
2780 =item *
2781  
2782 L<Search::Elasticsearch::Client::5_0::Direct>
2783  
2784 =back
2785  
2786 =head1 AUTHOR
2787  
2788 Enrico Zimuel <enrico.zimuel@elastic.co>
2789  
2790 =head1 COPYRIGHT AND LICENSE
2791  
2792 This software is Copyright (c) 2020 by Elasticsearch BV.
2793  
2794 This is free software, licensed under:
2795  
2796 The Apache License, Version 2.0, January 2004
2797  
2798 =cut
2799  
2800 __END__