5_0/Role/API.pm untested

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