@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $url = '/_security/profile/_activate'; |
55 | 55 | $method = 'POST'; |
56 | 56 | |
57 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
57 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
58 | 58 | $headers = [ |
59 | 59 | 'Accept' => 'application/json', |
60 | 60 | 'Content-Type' => 'application/json', |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $url = '/_security/_authenticate'; |
88 | 88 | $method = 'GET'; |
89 | 89 | |
90 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
90 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
91 | 91 | $headers = [ |
92 | 92 | 'Accept' => 'application/json', |
93 | 93 | ]; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $url = '/_security/api_key/_bulk_update'; |
122 | 122 | $method = 'POST'; |
123 | 123 | |
124 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
124 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
125 | 125 | $headers = [ |
126 | 126 | 'Accept' => 'application/json', |
127 | 127 | 'Content-Type' => 'application/json', |
@@ -156,13 +156,13 @@ discard block |
||
156 | 156 | { |
157 | 157 | $this->checkRequiredParameters(['body'], $params); |
158 | 158 | if (isset($params['username'])) { |
159 | - $url = '/_security/user/' . $this->encode($params['username']) . '/_password'; |
|
159 | + $url = '/_security/user/'.$this->encode($params['username']).'/_password'; |
|
160 | 160 | $method = 'PUT'; |
161 | 161 | } else { |
162 | 162 | $url = '/_security/user/_password'; |
163 | 163 | $method = 'PUT'; |
164 | 164 | } |
165 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
165 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
166 | 166 | $headers = [ |
167 | 167 | 'Accept' => 'application/json', |
168 | 168 | 'Content-Type' => 'application/json', |
@@ -195,10 +195,10 @@ discard block |
||
195 | 195 | public function clearApiKeyCache(array $params = []) |
196 | 196 | { |
197 | 197 | $this->checkRequiredParameters(['ids'], $params); |
198 | - $url = '/_security/api_key/' . $this->encode($params['ids']) . '/_clear_cache'; |
|
198 | + $url = '/_security/api_key/'.$this->encode($params['ids']).'/_clear_cache'; |
|
199 | 199 | $method = 'POST'; |
200 | 200 | |
201 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
201 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
202 | 202 | $headers = [ |
203 | 203 | 'Accept' => 'application/json', |
204 | 204 | ]; |
@@ -230,10 +230,10 @@ discard block |
||
230 | 230 | public function clearCachedPrivileges(array $params = []) |
231 | 231 | { |
232 | 232 | $this->checkRequiredParameters(['application'], $params); |
233 | - $url = '/_security/privilege/' . $this->encode($params['application']) . '/_clear_cache'; |
|
233 | + $url = '/_security/privilege/'.$this->encode($params['application']).'/_clear_cache'; |
|
234 | 234 | $method = 'POST'; |
235 | 235 | |
236 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
236 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
237 | 237 | $headers = [ |
238 | 238 | 'Accept' => 'application/json', |
239 | 239 | ]; |
@@ -266,10 +266,10 @@ discard block |
||
266 | 266 | public function clearCachedRealms(array $params = []) |
267 | 267 | { |
268 | 268 | $this->checkRequiredParameters(['realms'], $params); |
269 | - $url = '/_security/realm/' . $this->encode($params['realms']) . '/_clear_cache'; |
|
269 | + $url = '/_security/realm/'.$this->encode($params['realms']).'/_clear_cache'; |
|
270 | 270 | $method = 'POST'; |
271 | 271 | |
272 | - $url = $this->addQueryString($url, $params, ['usernames','pretty','human','error_trace','source','filter_path']); |
|
272 | + $url = $this->addQueryString($url, $params, ['usernames', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
273 | 273 | $headers = [ |
274 | 274 | 'Accept' => 'application/json', |
275 | 275 | ]; |
@@ -301,10 +301,10 @@ discard block |
||
301 | 301 | public function clearCachedRoles(array $params = []) |
302 | 302 | { |
303 | 303 | $this->checkRequiredParameters(['name'], $params); |
304 | - $url = '/_security/role/' . $this->encode($params['name']) . '/_clear_cache'; |
|
304 | + $url = '/_security/role/'.$this->encode($params['name']).'/_clear_cache'; |
|
305 | 305 | $method = 'POST'; |
306 | 306 | |
307 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
307 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
308 | 308 | $headers = [ |
309 | 309 | 'Accept' => 'application/json', |
310 | 310 | ]; |
@@ -337,11 +337,11 @@ discard block |
||
337 | 337 | */ |
338 | 338 | public function clearCachedServiceTokens(array $params = []) |
339 | 339 | { |
340 | - $this->checkRequiredParameters(['namespace','service','name'], $params); |
|
341 | - $url = '/_security/service/' . $this->encode($params['namespace']) . '/' . $this->encode($params['service']) . '/credential/token/' . $this->encode($params['name']) . '/_clear_cache'; |
|
340 | + $this->checkRequiredParameters(['namespace', 'service', 'name'], $params); |
|
341 | + $url = '/_security/service/'.$this->encode($params['namespace']).'/'.$this->encode($params['service']).'/credential/token/'.$this->encode($params['name']).'/_clear_cache'; |
|
342 | 342 | $method = 'POST'; |
343 | 343 | |
344 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
344 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
345 | 345 | $headers = [ |
346 | 346 | 'Accept' => 'application/json', |
347 | 347 | ]; |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | $url = '/_security/api_key'; |
377 | 377 | $method = 'PUT'; |
378 | 378 | |
379 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
379 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
380 | 380 | $headers = [ |
381 | 381 | 'Accept' => 'application/json', |
382 | 382 | 'Content-Type' => 'application/json', |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | $url = '/_security/cross_cluster/api_key'; |
412 | 412 | $method = 'POST'; |
413 | 413 | |
414 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
414 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
415 | 415 | $headers = [ |
416 | 416 | 'Accept' => 'application/json', |
417 | 417 | 'Content-Type' => 'application/json', |
@@ -446,15 +446,15 @@ discard block |
||
446 | 446 | */ |
447 | 447 | public function createServiceToken(array $params = []) |
448 | 448 | { |
449 | - $this->checkRequiredParameters(['namespace','service'], $params); |
|
449 | + $this->checkRequiredParameters(['namespace', 'service'], $params); |
|
450 | 450 | if (isset($params['name'])) { |
451 | - $url = '/_security/service/' . $this->encode($params['namespace']) . '/' . $this->encode($params['service']) . '/credential/token/' . $this->encode($params['name']); |
|
451 | + $url = '/_security/service/'.$this->encode($params['namespace']).'/'.$this->encode($params['service']).'/credential/token/'.$this->encode($params['name']); |
|
452 | 452 | $method = 'PUT'; |
453 | 453 | } else { |
454 | - $url = '/_security/service/' . $this->encode($params['namespace']) . '/' . $this->encode($params['service']) . '/credential/token'; |
|
454 | + $url = '/_security/service/'.$this->encode($params['namespace']).'/'.$this->encode($params['service']).'/credential/token'; |
|
455 | 455 | $method = 'POST'; |
456 | 456 | } |
457 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
457 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
458 | 458 | $headers = [ |
459 | 459 | 'Accept' => 'application/json', |
460 | 460 | ]; |
@@ -487,11 +487,11 @@ discard block |
||
487 | 487 | */ |
488 | 488 | public function deletePrivileges(array $params = []) |
489 | 489 | { |
490 | - $this->checkRequiredParameters(['application','name'], $params); |
|
491 | - $url = '/_security/privilege/' . $this->encode($params['application']) . '/' . $this->encode($params['name']); |
|
490 | + $this->checkRequiredParameters(['application', 'name'], $params); |
|
491 | + $url = '/_security/privilege/'.$this->encode($params['application']).'/'.$this->encode($params['name']); |
|
492 | 492 | $method = 'DELETE'; |
493 | 493 | |
494 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
494 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
495 | 495 | $headers = [ |
496 | 496 | 'Accept' => 'application/json', |
497 | 497 | ]; |
@@ -524,10 +524,10 @@ discard block |
||
524 | 524 | public function deleteRole(array $params = []) |
525 | 525 | { |
526 | 526 | $this->checkRequiredParameters(['name'], $params); |
527 | - $url = '/_security/role/' . $this->encode($params['name']); |
|
527 | + $url = '/_security/role/'.$this->encode($params['name']); |
|
528 | 528 | $method = 'DELETE'; |
529 | 529 | |
530 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
530 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
531 | 531 | $headers = [ |
532 | 532 | 'Accept' => 'application/json', |
533 | 533 | ]; |
@@ -560,10 +560,10 @@ discard block |
||
560 | 560 | public function deleteRoleMapping(array $params = []) |
561 | 561 | { |
562 | 562 | $this->checkRequiredParameters(['name'], $params); |
563 | - $url = '/_security/role_mapping/' . $this->encode($params['name']); |
|
563 | + $url = '/_security/role_mapping/'.$this->encode($params['name']); |
|
564 | 564 | $method = 'DELETE'; |
565 | 565 | |
566 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
566 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
567 | 567 | $headers = [ |
568 | 568 | 'Accept' => 'application/json', |
569 | 569 | ]; |
@@ -597,11 +597,11 @@ discard block |
||
597 | 597 | */ |
598 | 598 | public function deleteServiceToken(array $params = []) |
599 | 599 | { |
600 | - $this->checkRequiredParameters(['namespace','service','name'], $params); |
|
601 | - $url = '/_security/service/' . $this->encode($params['namespace']) . '/' . $this->encode($params['service']) . '/credential/token/' . $this->encode($params['name']); |
|
600 | + $this->checkRequiredParameters(['namespace', 'service', 'name'], $params); |
|
601 | + $url = '/_security/service/'.$this->encode($params['namespace']).'/'.$this->encode($params['service']).'/credential/token/'.$this->encode($params['name']); |
|
602 | 602 | $method = 'DELETE'; |
603 | 603 | |
604 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
604 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
605 | 605 | $headers = [ |
606 | 606 | 'Accept' => 'application/json', |
607 | 607 | ]; |
@@ -634,10 +634,10 @@ discard block |
||
634 | 634 | public function deleteUser(array $params = []) |
635 | 635 | { |
636 | 636 | $this->checkRequiredParameters(['username'], $params); |
637 | - $url = '/_security/user/' . $this->encode($params['username']); |
|
637 | + $url = '/_security/user/'.$this->encode($params['username']); |
|
638 | 638 | $method = 'DELETE'; |
639 | 639 | |
640 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
640 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
641 | 641 | $headers = [ |
642 | 642 | 'Accept' => 'application/json', |
643 | 643 | ]; |
@@ -670,10 +670,10 @@ discard block |
||
670 | 670 | public function disableUser(array $params = []) |
671 | 671 | { |
672 | 672 | $this->checkRequiredParameters(['username'], $params); |
673 | - $url = '/_security/user/' . $this->encode($params['username']) . '/_disable'; |
|
673 | + $url = '/_security/user/'.$this->encode($params['username']).'/_disable'; |
|
674 | 674 | $method = 'PUT'; |
675 | 675 | |
676 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
676 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
677 | 677 | $headers = [ |
678 | 678 | 'Accept' => 'application/json', |
679 | 679 | ]; |
@@ -706,10 +706,10 @@ discard block |
||
706 | 706 | public function disableUserProfile(array $params = []) |
707 | 707 | { |
708 | 708 | $this->checkRequiredParameters(['uid'], $params); |
709 | - $url = '/_security/profile/' . $this->encode($params['uid']) . '/_disable'; |
|
709 | + $url = '/_security/profile/'.$this->encode($params['uid']).'/_disable'; |
|
710 | 710 | $method = 'PUT'; |
711 | 711 | |
712 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
712 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
713 | 713 | $headers = [ |
714 | 714 | 'Accept' => 'application/json', |
715 | 715 | ]; |
@@ -742,10 +742,10 @@ discard block |
||
742 | 742 | public function enableUser(array $params = []) |
743 | 743 | { |
744 | 744 | $this->checkRequiredParameters(['username'], $params); |
745 | - $url = '/_security/user/' . $this->encode($params['username']) . '/_enable'; |
|
745 | + $url = '/_security/user/'.$this->encode($params['username']).'/_enable'; |
|
746 | 746 | $method = 'PUT'; |
747 | 747 | |
748 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
748 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
749 | 749 | $headers = [ |
750 | 750 | 'Accept' => 'application/json', |
751 | 751 | ]; |
@@ -778,10 +778,10 @@ discard block |
||
778 | 778 | public function enableUserProfile(array $params = []) |
779 | 779 | { |
780 | 780 | $this->checkRequiredParameters(['uid'], $params); |
781 | - $url = '/_security/profile/' . $this->encode($params['uid']) . '/_enable'; |
|
781 | + $url = '/_security/profile/'.$this->encode($params['uid']).'/_enable'; |
|
782 | 782 | $method = 'PUT'; |
783 | 783 | |
784 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
784 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
785 | 785 | $headers = [ |
786 | 786 | 'Accept' => 'application/json', |
787 | 787 | ]; |
@@ -813,7 +813,7 @@ discard block |
||
813 | 813 | $url = '/_security/enroll/kibana'; |
814 | 814 | $method = 'GET'; |
815 | 815 | |
816 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
816 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
817 | 817 | $headers = [ |
818 | 818 | 'Accept' => 'application/json', |
819 | 819 | 'Content-Type' => 'application/json', |
@@ -846,7 +846,7 @@ discard block |
||
846 | 846 | $url = '/_security/enroll/node'; |
847 | 847 | $method = 'GET'; |
848 | 848 | |
849 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
849 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
850 | 850 | $headers = [ |
851 | 851 | 'Accept' => 'application/json', |
852 | 852 | 'Content-Type' => 'application/json', |
@@ -886,7 +886,7 @@ discard block |
||
886 | 886 | $url = '/_security/api_key'; |
887 | 887 | $method = 'GET'; |
888 | 888 | |
889 | - $url = $this->addQueryString($url, $params, ['id','name','username','realm_name','owner','with_limited_by','active_only','pretty','human','error_trace','source','filter_path']); |
|
889 | + $url = $this->addQueryString($url, $params, ['id', 'name', 'username', 'realm_name', 'owner', 'with_limited_by', 'active_only', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
890 | 890 | $headers = [ |
891 | 891 | 'Accept' => 'application/json', |
892 | 892 | ]; |
@@ -918,7 +918,7 @@ discard block |
||
918 | 918 | $url = '/_security/privilege/_builtin'; |
919 | 919 | $method = 'GET'; |
920 | 920 | |
921 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
921 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
922 | 922 | $headers = [ |
923 | 923 | 'Accept' => 'application/json', |
924 | 924 | ]; |
@@ -950,16 +950,16 @@ discard block |
||
950 | 950 | public function getPrivileges(array $params = []) |
951 | 951 | { |
952 | 952 | if (isset($params['application']) && isset($params['name'])) { |
953 | - $url = '/_security/privilege/' . $this->encode($params['application']) . '/' . $this->encode($params['name']); |
|
953 | + $url = '/_security/privilege/'.$this->encode($params['application']).'/'.$this->encode($params['name']); |
|
954 | 954 | $method = 'GET'; |
955 | 955 | } elseif (isset($params['application'])) { |
956 | - $url = '/_security/privilege/' . $this->encode($params['application']); |
|
956 | + $url = '/_security/privilege/'.$this->encode($params['application']); |
|
957 | 957 | $method = 'GET'; |
958 | 958 | } else { |
959 | 959 | $url = '/_security/privilege'; |
960 | 960 | $method = 'GET'; |
961 | 961 | } |
962 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
962 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
963 | 963 | $headers = [ |
964 | 964 | 'Accept' => 'application/json', |
965 | 965 | ]; |
@@ -990,13 +990,13 @@ discard block |
||
990 | 990 | public function getRole(array $params = []) |
991 | 991 | { |
992 | 992 | if (isset($params['name'])) { |
993 | - $url = '/_security/role/' . $this->encode($params['name']); |
|
993 | + $url = '/_security/role/'.$this->encode($params['name']); |
|
994 | 994 | $method = 'GET'; |
995 | 995 | } else { |
996 | 996 | $url = '/_security/role'; |
997 | 997 | $method = 'GET'; |
998 | 998 | } |
999 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
999 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1000 | 1000 | $headers = [ |
1001 | 1001 | 'Accept' => 'application/json', |
1002 | 1002 | ]; |
@@ -1027,13 +1027,13 @@ discard block |
||
1027 | 1027 | public function getRoleMapping(array $params = []) |
1028 | 1028 | { |
1029 | 1029 | if (isset($params['name'])) { |
1030 | - $url = '/_security/role_mapping/' . $this->encode($params['name']); |
|
1030 | + $url = '/_security/role_mapping/'.$this->encode($params['name']); |
|
1031 | 1031 | $method = 'GET'; |
1032 | 1032 | } else { |
1033 | 1033 | $url = '/_security/role_mapping'; |
1034 | 1034 | $method = 'GET'; |
1035 | 1035 | } |
1036 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1036 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1037 | 1037 | $headers = [ |
1038 | 1038 | 'Accept' => 'application/json', |
1039 | 1039 | ]; |
@@ -1065,16 +1065,16 @@ discard block |
||
1065 | 1065 | public function getServiceAccounts(array $params = []) |
1066 | 1066 | { |
1067 | 1067 | if (isset($params['namespace']) && isset($params['service'])) { |
1068 | - $url = '/_security/service/' . $this->encode($params['namespace']) . '/' . $this->encode($params['service']); |
|
1068 | + $url = '/_security/service/'.$this->encode($params['namespace']).'/'.$this->encode($params['service']); |
|
1069 | 1069 | $method = 'GET'; |
1070 | 1070 | } elseif (isset($params['namespace'])) { |
1071 | - $url = '/_security/service/' . $this->encode($params['namespace']); |
|
1071 | + $url = '/_security/service/'.$this->encode($params['namespace']); |
|
1072 | 1072 | $method = 'GET'; |
1073 | 1073 | } else { |
1074 | 1074 | $url = '/_security/service'; |
1075 | 1075 | $method = 'GET'; |
1076 | 1076 | } |
1077 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1077 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1078 | 1078 | $headers = [ |
1079 | 1079 | 'Accept' => 'application/json', |
1080 | 1080 | ]; |
@@ -1106,11 +1106,11 @@ discard block |
||
1106 | 1106 | */ |
1107 | 1107 | public function getServiceCredentials(array $params = []) |
1108 | 1108 | { |
1109 | - $this->checkRequiredParameters(['namespace','service'], $params); |
|
1110 | - $url = '/_security/service/' . $this->encode($params['namespace']) . '/' . $this->encode($params['service']) . '/credential'; |
|
1109 | + $this->checkRequiredParameters(['namespace', 'service'], $params); |
|
1110 | + $url = '/_security/service/'.$this->encode($params['namespace']).'/'.$this->encode($params['service']).'/credential'; |
|
1111 | 1111 | $method = 'GET'; |
1112 | 1112 | |
1113 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1113 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1114 | 1114 | $headers = [ |
1115 | 1115 | 'Accept' => 'application/json', |
1116 | 1116 | ]; |
@@ -1142,7 +1142,7 @@ discard block |
||
1142 | 1142 | $url = '/_security/settings'; |
1143 | 1143 | $method = 'GET'; |
1144 | 1144 | |
1145 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1145 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1146 | 1146 | $headers = [ |
1147 | 1147 | 'Accept' => 'application/json', |
1148 | 1148 | 'Content-Type' => 'application/json', |
@@ -1177,7 +1177,7 @@ discard block |
||
1177 | 1177 | $url = '/_security/oauth2/token'; |
1178 | 1178 | $method = 'POST'; |
1179 | 1179 | |
1180 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1180 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1181 | 1181 | $headers = [ |
1182 | 1182 | 'Accept' => 'application/json', |
1183 | 1183 | 'Content-Type' => 'application/json', |
@@ -1210,13 +1210,13 @@ discard block |
||
1210 | 1210 | public function getUser(array $params = []) |
1211 | 1211 | { |
1212 | 1212 | if (isset($params['username'])) { |
1213 | - $url = '/_security/user/' . $this->encode($params['username']); |
|
1213 | + $url = '/_security/user/'.$this->encode($params['username']); |
|
1214 | 1214 | $method = 'GET'; |
1215 | 1215 | } else { |
1216 | 1216 | $url = '/_security/user'; |
1217 | 1217 | $method = 'GET'; |
1218 | 1218 | } |
1219 | - $url = $this->addQueryString($url, $params, ['with_profile_uid','pretty','human','error_trace','source','filter_path']); |
|
1219 | + $url = $this->addQueryString($url, $params, ['with_profile_uid', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1220 | 1220 | $headers = [ |
1221 | 1221 | 'Accept' => 'application/json', |
1222 | 1222 | ]; |
@@ -1248,7 +1248,7 @@ discard block |
||
1248 | 1248 | $url = '/_security/user/_privileges'; |
1249 | 1249 | $method = 'GET'; |
1250 | 1250 | |
1251 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1251 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1252 | 1252 | $headers = [ |
1253 | 1253 | 'Accept' => 'application/json', |
1254 | 1254 | ]; |
@@ -1281,10 +1281,10 @@ discard block |
||
1281 | 1281 | public function getUserProfile(array $params = []) |
1282 | 1282 | { |
1283 | 1283 | $this->checkRequiredParameters(['uid'], $params); |
1284 | - $url = '/_security/profile/' . $this->encode($params['uid']); |
|
1284 | + $url = '/_security/profile/'.$this->encode($params['uid']); |
|
1285 | 1285 | $method = 'GET'; |
1286 | 1286 | |
1287 | - $url = $this->addQueryString($url, $params, ['data','pretty','human','error_trace','source','filter_path']); |
|
1287 | + $url = $this->addQueryString($url, $params, ['data', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1288 | 1288 | $headers = [ |
1289 | 1289 | 'Accept' => 'application/json', |
1290 | 1290 | ]; |
@@ -1319,7 +1319,7 @@ discard block |
||
1319 | 1319 | $url = '/_security/api_key/grant'; |
1320 | 1320 | $method = 'POST'; |
1321 | 1321 | |
1322 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
1322 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1323 | 1323 | $headers = [ |
1324 | 1324 | 'Accept' => 'application/json', |
1325 | 1325 | 'Content-Type' => 'application/json', |
@@ -1353,13 +1353,13 @@ discard block |
||
1353 | 1353 | { |
1354 | 1354 | $this->checkRequiredParameters(['body'], $params); |
1355 | 1355 | if (isset($params['user'])) { |
1356 | - $url = '/_security/user/' . $this->encode($params['user']) . '/_has_privileges'; |
|
1356 | + $url = '/_security/user/'.$this->encode($params['user']).'/_has_privileges'; |
|
1357 | 1357 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1358 | 1358 | } else { |
1359 | 1359 | $url = '/_security/user/_has_privileges'; |
1360 | 1360 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1361 | 1361 | } |
1362 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1362 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1363 | 1363 | $headers = [ |
1364 | 1364 | 'Accept' => 'application/json', |
1365 | 1365 | 'Content-Type' => 'application/json', |
@@ -1394,7 +1394,7 @@ discard block |
||
1394 | 1394 | $url = '/_security/profile/_has_privileges'; |
1395 | 1395 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1396 | 1396 | |
1397 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1397 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1398 | 1398 | $headers = [ |
1399 | 1399 | 'Accept' => 'application/json', |
1400 | 1400 | 'Content-Type' => 'application/json', |
@@ -1429,7 +1429,7 @@ discard block |
||
1429 | 1429 | $url = '/_security/api_key'; |
1430 | 1430 | $method = 'DELETE'; |
1431 | 1431 | |
1432 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1432 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1433 | 1433 | $headers = [ |
1434 | 1434 | 'Accept' => 'application/json', |
1435 | 1435 | 'Content-Type' => 'application/json', |
@@ -1464,7 +1464,7 @@ discard block |
||
1464 | 1464 | $url = '/_security/oauth2/token'; |
1465 | 1465 | $method = 'DELETE'; |
1466 | 1466 | |
1467 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1467 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1468 | 1468 | $headers = [ |
1469 | 1469 | 'Accept' => 'application/json', |
1470 | 1470 | 'Content-Type' => 'application/json', |
@@ -1499,7 +1499,7 @@ discard block |
||
1499 | 1499 | $url = '/_security/oidc/authenticate'; |
1500 | 1500 | $method = 'POST'; |
1501 | 1501 | |
1502 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1502 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1503 | 1503 | $headers = [ |
1504 | 1504 | 'Accept' => 'application/json', |
1505 | 1505 | 'Content-Type' => 'application/json', |
@@ -1534,7 +1534,7 @@ discard block |
||
1534 | 1534 | $url = '/_security/oidc/logout'; |
1535 | 1535 | $method = 'POST'; |
1536 | 1536 | |
1537 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1537 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1538 | 1538 | $headers = [ |
1539 | 1539 | 'Accept' => 'application/json', |
1540 | 1540 | 'Content-Type' => 'application/json', |
@@ -1569,7 +1569,7 @@ discard block |
||
1569 | 1569 | $url = '/_security/oidc/prepare'; |
1570 | 1570 | $method = 'POST'; |
1571 | 1571 | |
1572 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1572 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1573 | 1573 | $headers = [ |
1574 | 1574 | 'Accept' => 'application/json', |
1575 | 1575 | 'Content-Type' => 'application/json', |
@@ -1605,7 +1605,7 @@ discard block |
||
1605 | 1605 | $url = '/_security/privilege/'; |
1606 | 1606 | $method = 'PUT'; |
1607 | 1607 | |
1608 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
1608 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1609 | 1609 | $headers = [ |
1610 | 1610 | 'Accept' => 'application/json', |
1611 | 1611 | 'Content-Type' => 'application/json', |
@@ -1639,11 +1639,11 @@ discard block |
||
1639 | 1639 | */ |
1640 | 1640 | public function putRole(array $params = []) |
1641 | 1641 | { |
1642 | - $this->checkRequiredParameters(['name','body'], $params); |
|
1643 | - $url = '/_security/role/' . $this->encode($params['name']); |
|
1642 | + $this->checkRequiredParameters(['name', 'body'], $params); |
|
1643 | + $url = '/_security/role/'.$this->encode($params['name']); |
|
1644 | 1644 | $method = 'PUT'; |
1645 | 1645 | |
1646 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
1646 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1647 | 1647 | $headers = [ |
1648 | 1648 | 'Accept' => 'application/json', |
1649 | 1649 | 'Content-Type' => 'application/json', |
@@ -1677,11 +1677,11 @@ discard block |
||
1677 | 1677 | */ |
1678 | 1678 | public function putRoleMapping(array $params = []) |
1679 | 1679 | { |
1680 | - $this->checkRequiredParameters(['name','body'], $params); |
|
1681 | - $url = '/_security/role_mapping/' . $this->encode($params['name']); |
|
1680 | + $this->checkRequiredParameters(['name', 'body'], $params); |
|
1681 | + $url = '/_security/role_mapping/'.$this->encode($params['name']); |
|
1682 | 1682 | $method = 'PUT'; |
1683 | 1683 | |
1684 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
1684 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1685 | 1685 | $headers = [ |
1686 | 1686 | 'Accept' => 'application/json', |
1687 | 1687 | 'Content-Type' => 'application/json', |
@@ -1715,11 +1715,11 @@ discard block |
||
1715 | 1715 | */ |
1716 | 1716 | public function putUser(array $params = []) |
1717 | 1717 | { |
1718 | - $this->checkRequiredParameters(['username','body'], $params); |
|
1719 | - $url = '/_security/user/' . $this->encode($params['username']); |
|
1718 | + $this->checkRequiredParameters(['username', 'body'], $params); |
|
1719 | + $url = '/_security/user/'.$this->encode($params['username']); |
|
1720 | 1720 | $method = 'PUT'; |
1721 | 1721 | |
1722 | - $url = $this->addQueryString($url, $params, ['refresh','pretty','human','error_trace','source','filter_path']); |
|
1722 | + $url = $this->addQueryString($url, $params, ['refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1723 | 1723 | $headers = [ |
1724 | 1724 | 'Accept' => 'application/json', |
1725 | 1725 | 'Content-Type' => 'application/json', |
@@ -1754,7 +1754,7 @@ discard block |
||
1754 | 1754 | $url = '/_security/_query/api_key'; |
1755 | 1755 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1756 | 1756 | |
1757 | - $url = $this->addQueryString($url, $params, ['with_limited_by','pretty','human','error_trace','source','filter_path']); |
|
1757 | + $url = $this->addQueryString($url, $params, ['with_limited_by', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1758 | 1758 | $headers = [ |
1759 | 1759 | 'Accept' => 'application/json', |
1760 | 1760 | 'Content-Type' => 'application/json', |
@@ -1789,7 +1789,7 @@ discard block |
||
1789 | 1789 | $url = '/_security/_query/user'; |
1790 | 1790 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1791 | 1791 | |
1792 | - $url = $this->addQueryString($url, $params, ['with_profile_uid','pretty','human','error_trace','source','filter_path']); |
|
1792 | + $url = $this->addQueryString($url, $params, ['with_profile_uid', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1793 | 1793 | $headers = [ |
1794 | 1794 | 'Accept' => 'application/json', |
1795 | 1795 | 'Content-Type' => 'application/json', |
@@ -1824,7 +1824,7 @@ discard block |
||
1824 | 1824 | $url = '/_security/saml/authenticate'; |
1825 | 1825 | $method = 'POST'; |
1826 | 1826 | |
1827 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1827 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1828 | 1828 | $headers = [ |
1829 | 1829 | 'Accept' => 'application/json', |
1830 | 1830 | 'Content-Type' => 'application/json', |
@@ -1859,7 +1859,7 @@ discard block |
||
1859 | 1859 | $url = '/_security/saml/complete_logout'; |
1860 | 1860 | $method = 'POST'; |
1861 | 1861 | |
1862 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1862 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1863 | 1863 | $headers = [ |
1864 | 1864 | 'Accept' => 'application/json', |
1865 | 1865 | 'Content-Type' => 'application/json', |
@@ -1894,7 +1894,7 @@ discard block |
||
1894 | 1894 | $url = '/_security/saml/invalidate'; |
1895 | 1895 | $method = 'POST'; |
1896 | 1896 | |
1897 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1897 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1898 | 1898 | $headers = [ |
1899 | 1899 | 'Accept' => 'application/json', |
1900 | 1900 | 'Content-Type' => 'application/json', |
@@ -1929,7 +1929,7 @@ discard block |
||
1929 | 1929 | $url = '/_security/saml/logout'; |
1930 | 1930 | $method = 'POST'; |
1931 | 1931 | |
1932 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1932 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1933 | 1933 | $headers = [ |
1934 | 1934 | 'Accept' => 'application/json', |
1935 | 1935 | 'Content-Type' => 'application/json', |
@@ -1964,7 +1964,7 @@ discard block |
||
1964 | 1964 | $url = '/_security/saml/prepare'; |
1965 | 1965 | $method = 'POST'; |
1966 | 1966 | |
1967 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1967 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1968 | 1968 | $headers = [ |
1969 | 1969 | 'Accept' => 'application/json', |
1970 | 1970 | 'Content-Type' => 'application/json', |
@@ -1997,10 +1997,10 @@ discard block |
||
1997 | 1997 | public function samlServiceProviderMetadata(array $params = []) |
1998 | 1998 | { |
1999 | 1999 | $this->checkRequiredParameters(['realm_name'], $params); |
2000 | - $url = '/_security/saml/metadata/' . $this->encode($params['realm_name']); |
|
2000 | + $url = '/_security/saml/metadata/'.$this->encode($params['realm_name']); |
|
2001 | 2001 | $method = 'GET'; |
2002 | 2002 | |
2003 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2003 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2004 | 2004 | $headers = [ |
2005 | 2005 | 'Accept' => 'application/json', |
2006 | 2006 | 'Content-Type' => 'application/json', |
@@ -2035,7 +2035,7 @@ discard block |
||
2035 | 2035 | $url = '/_security/profile/_suggest'; |
2036 | 2036 | $method = empty($params['body']) ? 'GET' : 'POST'; |
2037 | 2037 | |
2038 | - $url = $this->addQueryString($url, $params, ['data','pretty','human','error_trace','source','filter_path']); |
|
2038 | + $url = $this->addQueryString($url, $params, ['data', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2039 | 2039 | $headers = [ |
2040 | 2040 | 'Accept' => 'application/json', |
2041 | 2041 | 'Content-Type' => 'application/json', |
@@ -2069,10 +2069,10 @@ discard block |
||
2069 | 2069 | public function updateApiKey(array $params = []) |
2070 | 2070 | { |
2071 | 2071 | $this->checkRequiredParameters(['id'], $params); |
2072 | - $url = '/_security/api_key/' . $this->encode($params['id']); |
|
2072 | + $url = '/_security/api_key/'.$this->encode($params['id']); |
|
2073 | 2073 | $method = 'PUT'; |
2074 | 2074 | |
2075 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2075 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2076 | 2076 | $headers = [ |
2077 | 2077 | 'Accept' => 'application/json', |
2078 | 2078 | 'Content-Type' => 'application/json', |
@@ -2105,11 +2105,11 @@ discard block |
||
2105 | 2105 | */ |
2106 | 2106 | public function updateCrossClusterApiKey(array $params = []) |
2107 | 2107 | { |
2108 | - $this->checkRequiredParameters(['id','body'], $params); |
|
2109 | - $url = '/_security/cross_cluster/api_key/' . $this->encode($params['id']); |
|
2108 | + $this->checkRequiredParameters(['id', 'body'], $params); |
|
2109 | + $url = '/_security/cross_cluster/api_key/'.$this->encode($params['id']); |
|
2110 | 2110 | $method = 'PUT'; |
2111 | 2111 | |
2112 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2112 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2113 | 2113 | $headers = [ |
2114 | 2114 | 'Accept' => 'application/json', |
2115 | 2115 | 'Content-Type' => 'application/json', |
@@ -2144,7 +2144,7 @@ discard block |
||
2144 | 2144 | $url = '/_security/settings'; |
2145 | 2145 | $method = 'PUT'; |
2146 | 2146 | |
2147 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2147 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2148 | 2148 | $headers = [ |
2149 | 2149 | 'Accept' => 'application/json', |
2150 | 2150 | 'Content-Type' => 'application/json', |
@@ -2180,11 +2180,11 @@ discard block |
||
2180 | 2180 | */ |
2181 | 2181 | public function updateUserProfileData(array $params = []) |
2182 | 2182 | { |
2183 | - $this->checkRequiredParameters(['uid','body'], $params); |
|
2184 | - $url = '/_security/profile/' . $this->encode($params['uid']) . '/_data'; |
|
2183 | + $this->checkRequiredParameters(['uid', 'body'], $params); |
|
2184 | + $url = '/_security/profile/'.$this->encode($params['uid']).'/_data'; |
|
2185 | 2185 | $method = 'PUT'; |
2186 | 2186 | |
2187 | - $url = $this->addQueryString($url, $params, ['if_seq_no','if_primary_term','refresh','pretty','human','error_trace','source','filter_path']); |
|
2187 | + $url = $this->addQueryString($url, $params, ['if_seq_no', 'if_primary_term', 'refresh', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2188 | 2188 | $headers = [ |
2189 | 2189 | 'Accept' => 'application/json', |
2190 | 2190 | 'Content-Type' => 'application/json', |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Security extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Security extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Creates or updates the user profile on behalf of another user. |
33 | 32 | * |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | public function deletePipeline(array $params = []) |
53 | 53 | { |
54 | 54 | $this->checkRequiredParameters(['id'], $params); |
55 | - $url = '/_logstash/pipeline/' . $this->encode($params['id']); |
|
55 | + $url = '/_logstash/pipeline/'.$this->encode($params['id']); |
|
56 | 56 | $method = 'DELETE'; |
57 | 57 | |
58 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
58 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
59 | 59 | $headers = [ |
60 | 60 | 'Accept' => 'application/json', |
61 | 61 | ]; |
@@ -86,13 +86,13 @@ discard block |
||
86 | 86 | public function getPipeline(array $params = []) |
87 | 87 | { |
88 | 88 | if (isset($params['id'])) { |
89 | - $url = '/_logstash/pipeline/' . $this->encode($params['id']); |
|
89 | + $url = '/_logstash/pipeline/'.$this->encode($params['id']); |
|
90 | 90 | $method = 'GET'; |
91 | 91 | } else { |
92 | 92 | $url = '/_logstash/pipeline'; |
93 | 93 | $method = 'GET'; |
94 | 94 | } |
95 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
95 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
96 | 96 | $headers = [ |
97 | 97 | 'Accept' => 'application/json', |
98 | 98 | ]; |
@@ -124,11 +124,11 @@ discard block |
||
124 | 124 | */ |
125 | 125 | public function putPipeline(array $params = []) |
126 | 126 | { |
127 | - $this->checkRequiredParameters(['id','body'], $params); |
|
128 | - $url = '/_logstash/pipeline/' . $this->encode($params['id']); |
|
127 | + $this->checkRequiredParameters(['id', 'body'], $params); |
|
128 | + $url = '/_logstash/pipeline/'.$this->encode($params['id']); |
|
129 | 129 | $method = 'PUT'; |
130 | 130 | |
131 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
131 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
132 | 132 | $headers = [ |
133 | 133 | 'Accept' => 'application/json', |
134 | 134 | 'Content-Type' => 'application/json', |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Logstash extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Logstash extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Deletes Logstash Pipelines used by Central Management |
33 | 32 | * |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | public function deleteNode(array $params = []) |
53 | 53 | { |
54 | 54 | $this->checkRequiredParameters(['node_id'], $params); |
55 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/shutdown'; |
|
55 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/shutdown'; |
|
56 | 56 | $method = 'DELETE'; |
57 | 57 | |
58 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
58 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
59 | 59 | $headers = [ |
60 | 60 | 'Accept' => 'application/json', |
61 | 61 | 'Content-Type' => 'application/json', |
@@ -87,13 +87,13 @@ discard block |
||
87 | 87 | public function getNode(array $params = []) |
88 | 88 | { |
89 | 89 | if (isset($params['node_id'])) { |
90 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/shutdown'; |
|
90 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/shutdown'; |
|
91 | 91 | $method = 'GET'; |
92 | 92 | } else { |
93 | 93 | $url = '/_nodes/shutdown'; |
94 | 94 | $method = 'GET'; |
95 | 95 | } |
96 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
96 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
97 | 97 | $headers = [ |
98 | 98 | 'Accept' => 'application/json', |
99 | 99 | 'Content-Type' => 'application/json', |
@@ -126,11 +126,11 @@ discard block |
||
126 | 126 | */ |
127 | 127 | public function putNode(array $params = []) |
128 | 128 | { |
129 | - $this->checkRequiredParameters(['node_id','body'], $params); |
|
130 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/shutdown'; |
|
129 | + $this->checkRequiredParameters(['node_id', 'body'], $params); |
|
130 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/shutdown'; |
|
131 | 131 | $method = 'PUT'; |
132 | 132 | |
133 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
133 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
134 | 134 | $headers = [ |
135 | 135 | 'Accept' => 'application/json', |
136 | 136 | 'Content-Type' => 'application/json', |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Shutdown extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Shutdown extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Removes a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. |
33 | 32 | * |
@@ -57,11 +57,11 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function addBlock(array $params = []) |
59 | 59 | { |
60 | - $this->checkRequiredParameters(['index','block'], $params); |
|
61 | - $url = '/' . $this->encode($params['index']) . '/_block/' . $this->encode($params['block']); |
|
60 | + $this->checkRequiredParameters(['index', 'block'], $params); |
|
61 | + $url = '/'.$this->encode($params['index']).'/_block/'.$this->encode($params['block']); |
|
62 | 62 | $method = 'PUT'; |
63 | 63 | |
64 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','ignore_unavailable','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
64 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
65 | 65 | $headers = [ |
66 | 66 | 'Accept' => 'application/json', |
67 | 67 | ]; |
@@ -93,13 +93,13 @@ discard block |
||
93 | 93 | public function analyze(array $params = []) |
94 | 94 | { |
95 | 95 | if (isset($params['index'])) { |
96 | - $url = '/' . $this->encode($params['index']) . '/_analyze'; |
|
96 | + $url = '/'.$this->encode($params['index']).'/_analyze'; |
|
97 | 97 | $method = empty($params['body']) ? 'GET' : 'POST'; |
98 | 98 | } else { |
99 | 99 | $url = '/_analyze'; |
100 | 100 | $method = empty($params['body']) ? 'GET' : 'POST'; |
101 | 101 | } |
102 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
102 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
103 | 103 | $headers = [ |
104 | 104 | 'Accept' => 'application/json', |
105 | 105 | 'Content-Type' => 'application/json', |
@@ -138,13 +138,13 @@ discard block |
||
138 | 138 | public function clearCache(array $params = []) |
139 | 139 | { |
140 | 140 | if (isset($params['index'])) { |
141 | - $url = '/' . $this->encode($params['index']) . '/_cache/clear'; |
|
141 | + $url = '/'.$this->encode($params['index']).'/_cache/clear'; |
|
142 | 142 | $method = 'POST'; |
143 | 143 | } else { |
144 | 144 | $url = '/_cache/clear'; |
145 | 145 | $method = 'POST'; |
146 | 146 | } |
147 | - $url = $this->addQueryString($url, $params, ['fielddata','fields','query','ignore_unavailable','allow_no_indices','expand_wildcards','request','pretty','human','error_trace','source','filter_path']); |
|
147 | + $url = $this->addQueryString($url, $params, ['fielddata', 'fields', 'query', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'request', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
148 | 148 | $headers = [ |
149 | 149 | 'Accept' => 'application/json', |
150 | 150 | ]; |
@@ -180,11 +180,11 @@ discard block |
||
180 | 180 | */ |
181 | 181 | public function clone(array $params = []) |
182 | 182 | { |
183 | - $this->checkRequiredParameters(['index','target'], $params); |
|
184 | - $url = '/' . $this->encode($params['index']) . '/_clone/' . $this->encode($params['target']); |
|
183 | + $this->checkRequiredParameters(['index', 'target'], $params); |
|
184 | + $url = '/'.$this->encode($params['index']).'/_clone/'.$this->encode($params['target']); |
|
185 | 185 | $method = 'PUT'; |
186 | 186 | |
187 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','wait_for_active_shards','pretty','human','error_trace','source','filter_path']); |
|
187 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'wait_for_active_shards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
188 | 188 | $headers = [ |
189 | 189 | 'Accept' => 'application/json', |
190 | 190 | 'Content-Type' => 'application/json', |
@@ -223,10 +223,10 @@ discard block |
||
223 | 223 | public function close(array $params = []) |
224 | 224 | { |
225 | 225 | $this->checkRequiredParameters(['index'], $params); |
226 | - $url = '/' . $this->encode($params['index']) . '/_close'; |
|
226 | + $url = '/'.$this->encode($params['index']).'/_close'; |
|
227 | 227 | $method = 'POST'; |
228 | 228 | |
229 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','ignore_unavailable','allow_no_indices','expand_wildcards','wait_for_active_shards','pretty','human','error_trace','source','filter_path']); |
|
229 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'wait_for_active_shards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
230 | 230 | $headers = [ |
231 | 231 | 'Accept' => 'application/json', |
232 | 232 | ]; |
@@ -262,10 +262,10 @@ discard block |
||
262 | 262 | public function create(array $params = []) |
263 | 263 | { |
264 | 264 | $this->checkRequiredParameters(['index'], $params); |
265 | - $url = '/' . $this->encode($params['index']); |
|
265 | + $url = '/'.$this->encode($params['index']); |
|
266 | 266 | $method = 'PUT'; |
267 | 267 | |
268 | - $url = $this->addQueryString($url, $params, ['wait_for_active_shards','timeout','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
268 | + $url = $this->addQueryString($url, $params, ['wait_for_active_shards', 'timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
269 | 269 | $headers = [ |
270 | 270 | 'Accept' => 'application/json', |
271 | 271 | 'Content-Type' => 'application/json', |
@@ -298,10 +298,10 @@ discard block |
||
298 | 298 | public function createDataStream(array $params = []) |
299 | 299 | { |
300 | 300 | $this->checkRequiredParameters(['name'], $params); |
301 | - $url = '/_data_stream/' . $this->encode($params['name']); |
|
301 | + $url = '/_data_stream/'.$this->encode($params['name']); |
|
302 | 302 | $method = 'PUT'; |
303 | 303 | |
304 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
304 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
305 | 305 | $headers = [ |
306 | 306 | 'Accept' => 'application/json', |
307 | 307 | ]; |
@@ -332,13 +332,13 @@ discard block |
||
332 | 332 | public function dataStreamsStats(array $params = []) |
333 | 333 | { |
334 | 334 | if (isset($params['name'])) { |
335 | - $url = '/_data_stream/' . $this->encode($params['name']) . '/_stats'; |
|
335 | + $url = '/_data_stream/'.$this->encode($params['name']).'/_stats'; |
|
336 | 336 | $method = 'GET'; |
337 | 337 | } else { |
338 | 338 | $url = '/_data_stream/_stats'; |
339 | 339 | $method = 'GET'; |
340 | 340 | } |
341 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
341 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
342 | 342 | $headers = [ |
343 | 343 | 'Accept' => 'application/json', |
344 | 344 | ]; |
@@ -375,10 +375,10 @@ discard block |
||
375 | 375 | public function delete(array $params = []) |
376 | 376 | { |
377 | 377 | $this->checkRequiredParameters(['index'], $params); |
378 | - $url = '/' . $this->encode($params['index']); |
|
378 | + $url = '/'.$this->encode($params['index']); |
|
379 | 379 | $method = 'DELETE'; |
380 | 380 | |
381 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','ignore_unavailable','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
381 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
382 | 382 | $headers = [ |
383 | 383 | 'Accept' => 'application/json', |
384 | 384 | ]; |
@@ -412,11 +412,11 @@ discard block |
||
412 | 412 | */ |
413 | 413 | public function deleteAlias(array $params = []) |
414 | 414 | { |
415 | - $this->checkRequiredParameters(['index','name'], $params); |
|
416 | - $url = '/' . $this->encode($params['index']) . '/_alias/' . $this->encode($params['name']); |
|
415 | + $this->checkRequiredParameters(['index', 'name'], $params); |
|
416 | + $url = '/'.$this->encode($params['index']).'/_alias/'.$this->encode($params['name']); |
|
417 | 417 | $method = 'DELETE'; |
418 | 418 | |
419 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
419 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
420 | 420 | $headers = [ |
421 | 421 | 'Accept' => 'application/json', |
422 | 422 | ]; |
@@ -452,10 +452,10 @@ discard block |
||
452 | 452 | public function deleteDataLifecycle(array $params = []) |
453 | 453 | { |
454 | 454 | $this->checkRequiredParameters(['name'], $params); |
455 | - $url = '/_data_stream/' . $this->encode($params['name']) . '/_lifecycle'; |
|
455 | + $url = '/_data_stream/'.$this->encode($params['name']).'/_lifecycle'; |
|
456 | 456 | $method = 'DELETE'; |
457 | 457 | |
458 | - $url = $this->addQueryString($url, $params, ['expand_wildcards','timeout','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
458 | + $url = $this->addQueryString($url, $params, ['expand_wildcards', 'timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
459 | 459 | $headers = [ |
460 | 460 | 'Accept' => 'application/json', |
461 | 461 | ]; |
@@ -488,10 +488,10 @@ discard block |
||
488 | 488 | public function deleteDataStream(array $params = []) |
489 | 489 | { |
490 | 490 | $this->checkRequiredParameters(['name'], $params); |
491 | - $url = '/_data_stream/' . $this->encode($params['name']); |
|
491 | + $url = '/_data_stream/'.$this->encode($params['name']); |
|
492 | 492 | $method = 'DELETE'; |
493 | 493 | |
494 | - $url = $this->addQueryString($url, $params, ['expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
494 | + $url = $this->addQueryString($url, $params, ['expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
495 | 495 | $headers = [ |
496 | 496 | 'Accept' => 'application/json', |
497 | 497 | ]; |
@@ -525,10 +525,10 @@ discard block |
||
525 | 525 | public function deleteIndexTemplate(array $params = []) |
526 | 526 | { |
527 | 527 | $this->checkRequiredParameters(['name'], $params); |
528 | - $url = '/_index_template/' . $this->encode($params['name']); |
|
528 | + $url = '/_index_template/'.$this->encode($params['name']); |
|
529 | 529 | $method = 'DELETE'; |
530 | 530 | |
531 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
531 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
532 | 532 | $headers = [ |
533 | 533 | 'Accept' => 'application/json', |
534 | 534 | ]; |
@@ -562,10 +562,10 @@ discard block |
||
562 | 562 | public function deleteTemplate(array $params = []) |
563 | 563 | { |
564 | 564 | $this->checkRequiredParameters(['name'], $params); |
565 | - $url = '/_template/' . $this->encode($params['name']); |
|
565 | + $url = '/_template/'.$this->encode($params['name']); |
|
566 | 566 | $method = 'DELETE'; |
567 | 567 | |
568 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
568 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
569 | 569 | $headers = [ |
570 | 570 | 'Accept' => 'application/json', |
571 | 571 | ]; |
@@ -603,10 +603,10 @@ discard block |
||
603 | 603 | public function diskUsage(array $params = []) |
604 | 604 | { |
605 | 605 | $this->checkRequiredParameters(['index'], $params); |
606 | - $url = '/' . $this->encode($params['index']) . '/_disk_usage'; |
|
606 | + $url = '/'.$this->encode($params['index']).'/_disk_usage'; |
|
607 | 607 | $method = 'POST'; |
608 | 608 | |
609 | - $url = $this->addQueryString($url, $params, ['run_expensive_tasks','flush','ignore_unavailable','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
609 | + $url = $this->addQueryString($url, $params, ['run_expensive_tasks', 'flush', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
610 | 610 | $headers = [ |
611 | 611 | 'Accept' => 'application/json', |
612 | 612 | ]; |
@@ -640,11 +640,11 @@ discard block |
||
640 | 640 | */ |
641 | 641 | public function downsample(array $params = []) |
642 | 642 | { |
643 | - $this->checkRequiredParameters(['index','target_index','body'], $params); |
|
644 | - $url = '/' . $this->encode($params['index']) . '/_downsample/' . $this->encode($params['target_index']); |
|
643 | + $this->checkRequiredParameters(['index', 'target_index', 'body'], $params); |
|
644 | + $url = '/'.$this->encode($params['index']).'/_downsample/'.$this->encode($params['target_index']); |
|
645 | 645 | $method = 'POST'; |
646 | 646 | |
647 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
647 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
648 | 648 | $headers = [ |
649 | 649 | 'Accept' => 'application/json', |
650 | 650 | 'Content-Type' => 'application/json', |
@@ -683,10 +683,10 @@ discard block |
||
683 | 683 | public function exists(array $params = []) |
684 | 684 | { |
685 | 685 | $this->checkRequiredParameters(['index'], $params); |
686 | - $url = '/' . $this->encode($params['index']); |
|
686 | + $url = '/'.$this->encode($params['index']); |
|
687 | 687 | $method = 'HEAD'; |
688 | 688 | |
689 | - $url = $this->addQueryString($url, $params, ['local','ignore_unavailable','allow_no_indices','expand_wildcards','flat_settings','include_defaults','pretty','human','error_trace','source','filter_path']); |
|
689 | + $url = $this->addQueryString($url, $params, ['local', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'flat_settings', 'include_defaults', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
690 | 690 | $headers = [ |
691 | 691 | 'Accept' => 'application/json', |
692 | 692 | ]; |
@@ -724,13 +724,13 @@ discard block |
||
724 | 724 | { |
725 | 725 | $this->checkRequiredParameters(['name'], $params); |
726 | 726 | if (isset($params['index'])) { |
727 | - $url = '/' . $this->encode($params['index']) . '/_alias/' . $this->encode($params['name']); |
|
727 | + $url = '/'.$this->encode($params['index']).'/_alias/'.$this->encode($params['name']); |
|
728 | 728 | $method = 'HEAD'; |
729 | 729 | } else { |
730 | - $url = '/_alias/' . $this->encode($params['name']); |
|
730 | + $url = '/_alias/'.$this->encode($params['name']); |
|
731 | 731 | $method = 'HEAD'; |
732 | 732 | } |
733 | - $url = $this->addQueryString($url, $params, ['ignore_unavailable','allow_no_indices','expand_wildcards','local','pretty','human','error_trace','source','filter_path']); |
|
733 | + $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'local', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
734 | 734 | $headers = [ |
735 | 735 | 'Accept' => 'application/json', |
736 | 736 | ]; |
@@ -765,10 +765,10 @@ discard block |
||
765 | 765 | public function existsIndexTemplate(array $params = []) |
766 | 766 | { |
767 | 767 | $this->checkRequiredParameters(['name'], $params); |
768 | - $url = '/_index_template/' . $this->encode($params['name']); |
|
768 | + $url = '/_index_template/'.$this->encode($params['name']); |
|
769 | 769 | $method = 'HEAD'; |
770 | 770 | |
771 | - $url = $this->addQueryString($url, $params, ['flat_settings','master_timeout','local','pretty','human','error_trace','source','filter_path']); |
|
771 | + $url = $this->addQueryString($url, $params, ['flat_settings', 'master_timeout', 'local', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
772 | 772 | $headers = [ |
773 | 773 | 'Accept' => 'application/json', |
774 | 774 | ]; |
@@ -803,10 +803,10 @@ discard block |
||
803 | 803 | public function existsTemplate(array $params = []) |
804 | 804 | { |
805 | 805 | $this->checkRequiredParameters(['name'], $params); |
806 | - $url = '/_template/' . $this->encode($params['name']); |
|
806 | + $url = '/_template/'.$this->encode($params['name']); |
|
807 | 807 | $method = 'HEAD'; |
808 | 808 | |
809 | - $url = $this->addQueryString($url, $params, ['flat_settings','master_timeout','local','pretty','human','error_trace','source','filter_path']); |
|
809 | + $url = $this->addQueryString($url, $params, ['flat_settings', 'master_timeout', 'local', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
810 | 810 | $headers = [ |
811 | 811 | 'Accept' => 'application/json', |
812 | 812 | ]; |
@@ -841,10 +841,10 @@ discard block |
||
841 | 841 | public function explainDataLifecycle(array $params = []) |
842 | 842 | { |
843 | 843 | $this->checkRequiredParameters(['index'], $params); |
844 | - $url = '/' . $this->encode($params['index']) . '/_lifecycle/explain'; |
|
844 | + $url = '/'.$this->encode($params['index']).'/_lifecycle/explain'; |
|
845 | 845 | $method = 'GET'; |
846 | 846 | |
847 | - $url = $this->addQueryString($url, $params, ['include_defaults','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
847 | + $url = $this->addQueryString($url, $params, ['include_defaults', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
848 | 848 | $headers = [ |
849 | 849 | 'Accept' => 'application/json', |
850 | 850 | ]; |
@@ -881,10 +881,10 @@ discard block |
||
881 | 881 | public function fieldUsageStats(array $params = []) |
882 | 882 | { |
883 | 883 | $this->checkRequiredParameters(['index'], $params); |
884 | - $url = '/' . $this->encode($params['index']) . '/_field_usage_stats'; |
|
884 | + $url = '/'.$this->encode($params['index']).'/_field_usage_stats'; |
|
885 | 885 | $method = 'GET'; |
886 | 886 | |
887 | - $url = $this->addQueryString($url, $params, ['fields','ignore_unavailable','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
887 | + $url = $this->addQueryString($url, $params, ['fields', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
888 | 888 | $headers = [ |
889 | 889 | 'Accept' => 'application/json', |
890 | 890 | ]; |
@@ -920,13 +920,13 @@ discard block |
||
920 | 920 | public function flush(array $params = []) |
921 | 921 | { |
922 | 922 | if (isset($params['index'])) { |
923 | - $url = '/' . $this->encode($params['index']) . '/_flush'; |
|
923 | + $url = '/'.$this->encode($params['index']).'/_flush'; |
|
924 | 924 | $method = empty($params['body']) ? 'GET' : 'POST'; |
925 | 925 | } else { |
926 | 926 | $url = '/_flush'; |
927 | 927 | $method = empty($params['body']) ? 'GET' : 'POST'; |
928 | 928 | } |
929 | - $url = $this->addQueryString($url, $params, ['force','wait_if_ongoing','ignore_unavailable','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
929 | + $url = $this->addQueryString($url, $params, ['force', 'wait_if_ongoing', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
930 | 930 | $headers = [ |
931 | 931 | 'Accept' => 'application/json', |
932 | 932 | ]; |
@@ -964,13 +964,13 @@ discard block |
||
964 | 964 | public function forcemerge(array $params = []) |
965 | 965 | { |
966 | 966 | if (isset($params['index'])) { |
967 | - $url = '/' . $this->encode($params['index']) . '/_forcemerge'; |
|
967 | + $url = '/'.$this->encode($params['index']).'/_forcemerge'; |
|
968 | 968 | $method = 'POST'; |
969 | 969 | } else { |
970 | 970 | $url = '/_forcemerge'; |
971 | 971 | $method = 'POST'; |
972 | 972 | } |
973 | - $url = $this->addQueryString($url, $params, ['flush','ignore_unavailable','allow_no_indices','expand_wildcards','max_num_segments','only_expunge_deletes','wait_for_completion','pretty','human','error_trace','source','filter_path']); |
|
973 | + $url = $this->addQueryString($url, $params, ['flush', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'max_num_segments', 'only_expunge_deletes', 'wait_for_completion', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
974 | 974 | $headers = [ |
975 | 975 | 'Accept' => 'application/json', |
976 | 976 | ]; |
@@ -1010,10 +1010,10 @@ discard block |
||
1010 | 1010 | public function get(array $params = []) |
1011 | 1011 | { |
1012 | 1012 | $this->checkRequiredParameters(['index'], $params); |
1013 | - $url = '/' . $this->encode($params['index']); |
|
1013 | + $url = '/'.$this->encode($params['index']); |
|
1014 | 1014 | $method = 'GET'; |
1015 | 1015 | |
1016 | - $url = $this->addQueryString($url, $params, ['local','ignore_unavailable','allow_no_indices','expand_wildcards','features','flat_settings','include_defaults','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
1016 | + $url = $this->addQueryString($url, $params, ['local', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'features', 'flat_settings', 'include_defaults', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1017 | 1017 | $headers = [ |
1018 | 1018 | 'Accept' => 'application/json', |
1019 | 1019 | ]; |
@@ -1049,19 +1049,19 @@ discard block |
||
1049 | 1049 | public function getAlias(array $params = []) |
1050 | 1050 | { |
1051 | 1051 | if (isset($params['index']) && isset($params['name'])) { |
1052 | - $url = '/' . $this->encode($params['index']) . '/_alias/' . $this->encode($params['name']); |
|
1052 | + $url = '/'.$this->encode($params['index']).'/_alias/'.$this->encode($params['name']); |
|
1053 | 1053 | $method = 'GET'; |
1054 | 1054 | } elseif (isset($params['name'])) { |
1055 | - $url = '/_alias/' . $this->encode($params['name']); |
|
1055 | + $url = '/_alias/'.$this->encode($params['name']); |
|
1056 | 1056 | $method = 'GET'; |
1057 | 1057 | } elseif (isset($params['index'])) { |
1058 | - $url = '/' . $this->encode($params['index']) . '/_alias'; |
|
1058 | + $url = '/'.$this->encode($params['index']).'/_alias'; |
|
1059 | 1059 | $method = 'GET'; |
1060 | 1060 | } else { |
1061 | 1061 | $url = '/_alias'; |
1062 | 1062 | $method = 'GET'; |
1063 | 1063 | } |
1064 | - $url = $this->addQueryString($url, $params, ['ignore_unavailable','allow_no_indices','expand_wildcards','local','pretty','human','error_trace','source','filter_path']); |
|
1064 | + $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'local', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1065 | 1065 | $headers = [ |
1066 | 1066 | 'Accept' => 'application/json', |
1067 | 1067 | ]; |
@@ -1096,10 +1096,10 @@ discard block |
||
1096 | 1096 | public function getDataLifecycle(array $params = []) |
1097 | 1097 | { |
1098 | 1098 | $this->checkRequiredParameters(['name'], $params); |
1099 | - $url = '/_data_stream/' . $this->encode($params['name']) . '/_lifecycle'; |
|
1099 | + $url = '/_data_stream/'.$this->encode($params['name']).'/_lifecycle'; |
|
1100 | 1100 | $method = 'GET'; |
1101 | 1101 | |
1102 | - $url = $this->addQueryString($url, $params, ['expand_wildcards','include_defaults','pretty','human','error_trace','source','filter_path']); |
|
1102 | + $url = $this->addQueryString($url, $params, ['expand_wildcards', 'include_defaults', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1103 | 1103 | $headers = [ |
1104 | 1104 | 'Accept' => 'application/json', |
1105 | 1105 | ]; |
@@ -1132,13 +1132,13 @@ discard block |
||
1132 | 1132 | public function getDataStream(array $params = []) |
1133 | 1133 | { |
1134 | 1134 | if (isset($params['name'])) { |
1135 | - $url = '/_data_stream/' . $this->encode($params['name']); |
|
1135 | + $url = '/_data_stream/'.$this->encode($params['name']); |
|
1136 | 1136 | $method = 'GET'; |
1137 | 1137 | } else { |
1138 | 1138 | $url = '/_data_stream'; |
1139 | 1139 | $method = 'GET'; |
1140 | 1140 | } |
1141 | - $url = $this->addQueryString($url, $params, ['expand_wildcards','include_defaults','pretty','human','error_trace','source','filter_path']); |
|
1141 | + $url = $this->addQueryString($url, $params, ['expand_wildcards', 'include_defaults', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1142 | 1142 | $headers = [ |
1143 | 1143 | 'Accept' => 'application/json', |
1144 | 1144 | ]; |
@@ -1177,13 +1177,13 @@ discard block |
||
1177 | 1177 | { |
1178 | 1178 | $this->checkRequiredParameters(['fields'], $params); |
1179 | 1179 | if (isset($params['index'])) { |
1180 | - $url = '/' . $this->encode($params['index']) . '/_mapping/field/' . $this->encode($params['fields']); |
|
1180 | + $url = '/'.$this->encode($params['index']).'/_mapping/field/'.$this->encode($params['fields']); |
|
1181 | 1181 | $method = 'GET'; |
1182 | 1182 | } else { |
1183 | - $url = '/_mapping/field/' . $this->encode($params['fields']); |
|
1183 | + $url = '/_mapping/field/'.$this->encode($params['fields']); |
|
1184 | 1184 | $method = 'GET'; |
1185 | 1185 | } |
1186 | - $url = $this->addQueryString($url, $params, ['include_defaults','ignore_unavailable','allow_no_indices','expand_wildcards','local','pretty','human','error_trace','source','filter_path']); |
|
1186 | + $url = $this->addQueryString($url, $params, ['include_defaults', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'local', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1187 | 1187 | $headers = [ |
1188 | 1188 | 'Accept' => 'application/json', |
1189 | 1189 | ]; |
@@ -1218,13 +1218,13 @@ discard block |
||
1218 | 1218 | public function getIndexTemplate(array $params = []) |
1219 | 1219 | { |
1220 | 1220 | if (isset($params['name'])) { |
1221 | - $url = '/_index_template/' . $this->encode($params['name']); |
|
1221 | + $url = '/_index_template/'.$this->encode($params['name']); |
|
1222 | 1222 | $method = 'GET'; |
1223 | 1223 | } else { |
1224 | 1224 | $url = '/_index_template'; |
1225 | 1225 | $method = 'GET'; |
1226 | 1226 | } |
1227 | - $url = $this->addQueryString($url, $params, ['flat_settings','master_timeout','local','include_defaults','pretty','human','error_trace','source','filter_path']); |
|
1227 | + $url = $this->addQueryString($url, $params, ['flat_settings', 'master_timeout', 'local', 'include_defaults', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1228 | 1228 | $headers = [ |
1229 | 1229 | 'Accept' => 'application/json', |
1230 | 1230 | ]; |
@@ -1260,13 +1260,13 @@ discard block |
||
1260 | 1260 | public function getMapping(array $params = []) |
1261 | 1261 | { |
1262 | 1262 | if (isset($params['index'])) { |
1263 | - $url = '/' . $this->encode($params['index']) . '/_mapping'; |
|
1263 | + $url = '/'.$this->encode($params['index']).'/_mapping'; |
|
1264 | 1264 | $method = 'GET'; |
1265 | 1265 | } else { |
1266 | 1266 | $url = '/_mapping'; |
1267 | 1267 | $method = 'GET'; |
1268 | 1268 | } |
1269 | - $url = $this->addQueryString($url, $params, ['ignore_unavailable','allow_no_indices','expand_wildcards','master_timeout','local','pretty','human','error_trace','source','filter_path']); |
|
1269 | + $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'master_timeout', 'local', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1270 | 1270 | $headers = [ |
1271 | 1271 | 'Accept' => 'application/json', |
1272 | 1272 | ]; |
@@ -1305,19 +1305,19 @@ discard block |
||
1305 | 1305 | public function getSettings(array $params = []) |
1306 | 1306 | { |
1307 | 1307 | if (isset($params['index']) && isset($params['name'])) { |
1308 | - $url = '/' . $this->encode($params['index']) . '/_settings/' . $this->encode($params['name']); |
|
1308 | + $url = '/'.$this->encode($params['index']).'/_settings/'.$this->encode($params['name']); |
|
1309 | 1309 | $method = 'GET'; |
1310 | 1310 | } elseif (isset($params['index'])) { |
1311 | - $url = '/' . $this->encode($params['index']) . '/_settings'; |
|
1311 | + $url = '/'.$this->encode($params['index']).'/_settings'; |
|
1312 | 1312 | $method = 'GET'; |
1313 | 1313 | } elseif (isset($params['name'])) { |
1314 | - $url = '/_settings/' . $this->encode($params['name']); |
|
1314 | + $url = '/_settings/'.$this->encode($params['name']); |
|
1315 | 1315 | $method = 'GET'; |
1316 | 1316 | } else { |
1317 | 1317 | $url = '/_settings'; |
1318 | 1318 | $method = 'GET'; |
1319 | 1319 | } |
1320 | - $url = $this->addQueryString($url, $params, ['master_timeout','ignore_unavailable','allow_no_indices','expand_wildcards','flat_settings','local','include_defaults','pretty','human','error_trace','source','filter_path']); |
|
1320 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'flat_settings', 'local', 'include_defaults', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1321 | 1321 | $headers = [ |
1322 | 1322 | 'Accept' => 'application/json', |
1323 | 1323 | ]; |
@@ -1351,13 +1351,13 @@ discard block |
||
1351 | 1351 | public function getTemplate(array $params = []) |
1352 | 1352 | { |
1353 | 1353 | if (isset($params['name'])) { |
1354 | - $url = '/_template/' . $this->encode($params['name']); |
|
1354 | + $url = '/_template/'.$this->encode($params['name']); |
|
1355 | 1355 | $method = 'GET'; |
1356 | 1356 | } else { |
1357 | 1357 | $url = '/_template'; |
1358 | 1358 | $method = 'GET'; |
1359 | 1359 | } |
1360 | - $url = $this->addQueryString($url, $params, ['flat_settings','master_timeout','local','pretty','human','error_trace','source','filter_path']); |
|
1360 | + $url = $this->addQueryString($url, $params, ['flat_settings', 'master_timeout', 'local', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1361 | 1361 | $headers = [ |
1362 | 1362 | 'Accept' => 'application/json', |
1363 | 1363 | ]; |
@@ -1389,10 +1389,10 @@ discard block |
||
1389 | 1389 | public function migrateToDataStream(array $params = []) |
1390 | 1390 | { |
1391 | 1391 | $this->checkRequiredParameters(['name'], $params); |
1392 | - $url = '/_data_stream/_migrate/' . $this->encode($params['name']); |
|
1392 | + $url = '/_data_stream/_migrate/'.$this->encode($params['name']); |
|
1393 | 1393 | $method = 'POST'; |
1394 | 1394 | |
1395 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1395 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1396 | 1396 | $headers = [ |
1397 | 1397 | 'Accept' => 'application/json', |
1398 | 1398 | ]; |
@@ -1426,7 +1426,7 @@ discard block |
||
1426 | 1426 | $url = '/_data_stream/_modify'; |
1427 | 1427 | $method = 'POST'; |
1428 | 1428 | |
1429 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1429 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1430 | 1430 | $headers = [ |
1431 | 1431 | 'Accept' => 'application/json', |
1432 | 1432 | 'Content-Type' => 'application/json', |
@@ -1465,10 +1465,10 @@ discard block |
||
1465 | 1465 | public function open(array $params = []) |
1466 | 1466 | { |
1467 | 1467 | $this->checkRequiredParameters(['index'], $params); |
1468 | - $url = '/' . $this->encode($params['index']) . '/_open'; |
|
1468 | + $url = '/'.$this->encode($params['index']).'/_open'; |
|
1469 | 1469 | $method = 'POST'; |
1470 | 1470 | |
1471 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','ignore_unavailable','allow_no_indices','expand_wildcards','wait_for_active_shards','pretty','human','error_trace','source','filter_path']); |
|
1471 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'wait_for_active_shards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1472 | 1472 | $headers = [ |
1473 | 1473 | 'Accept' => 'application/json', |
1474 | 1474 | ]; |
@@ -1500,10 +1500,10 @@ discard block |
||
1500 | 1500 | public function promoteDataStream(array $params = []) |
1501 | 1501 | { |
1502 | 1502 | $this->checkRequiredParameters(['name'], $params); |
1503 | - $url = '/_data_stream/_promote/' . $this->encode($params['name']); |
|
1503 | + $url = '/_data_stream/_promote/'.$this->encode($params['name']); |
|
1504 | 1504 | $method = 'POST'; |
1505 | 1505 | |
1506 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1506 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1507 | 1507 | $headers = [ |
1508 | 1508 | 'Accept' => 'application/json', |
1509 | 1509 | ]; |
@@ -1538,11 +1538,11 @@ discard block |
||
1538 | 1538 | */ |
1539 | 1539 | public function putAlias(array $params = []) |
1540 | 1540 | { |
1541 | - $this->checkRequiredParameters(['index','name'], $params); |
|
1542 | - $url = '/' . $this->encode($params['index']) . '/_alias/' . $this->encode($params['name']); |
|
1541 | + $this->checkRequiredParameters(['index', 'name'], $params); |
|
1542 | + $url = '/'.$this->encode($params['index']).'/_alias/'.$this->encode($params['name']); |
|
1543 | 1543 | $method = 'PUT'; |
1544 | 1544 | |
1545 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
1545 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1546 | 1546 | $headers = [ |
1547 | 1547 | 'Accept' => 'application/json', |
1548 | 1548 | 'Content-Type' => 'application/json', |
@@ -1580,10 +1580,10 @@ discard block |
||
1580 | 1580 | public function putDataLifecycle(array $params = []) |
1581 | 1581 | { |
1582 | 1582 | $this->checkRequiredParameters(['name'], $params); |
1583 | - $url = '/_data_stream/' . $this->encode($params['name']) . '/_lifecycle'; |
|
1583 | + $url = '/_data_stream/'.$this->encode($params['name']).'/_lifecycle'; |
|
1584 | 1584 | $method = 'PUT'; |
1585 | 1585 | |
1586 | - $url = $this->addQueryString($url, $params, ['expand_wildcards','timeout','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
1586 | + $url = $this->addQueryString($url, $params, ['expand_wildcards', 'timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1587 | 1587 | $headers = [ |
1588 | 1588 | 'Accept' => 'application/json', |
1589 | 1589 | ]; |
@@ -1618,11 +1618,11 @@ discard block |
||
1618 | 1618 | */ |
1619 | 1619 | public function putIndexTemplate(array $params = []) |
1620 | 1620 | { |
1621 | - $this->checkRequiredParameters(['name','body'], $params); |
|
1622 | - $url = '/_index_template/' . $this->encode($params['name']); |
|
1621 | + $this->checkRequiredParameters(['name', 'body'], $params); |
|
1622 | + $url = '/_index_template/'.$this->encode($params['name']); |
|
1623 | 1623 | $method = 'PUT'; |
1624 | 1624 | |
1625 | - $url = $this->addQueryString($url, $params, ['create','cause','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
1625 | + $url = $this->addQueryString($url, $params, ['create', 'cause', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1626 | 1626 | $headers = [ |
1627 | 1627 | 'Accept' => 'application/json', |
1628 | 1628 | 'Content-Type' => 'application/json', |
@@ -1661,11 +1661,11 @@ discard block |
||
1661 | 1661 | */ |
1662 | 1662 | public function putMapping(array $params = []) |
1663 | 1663 | { |
1664 | - $this->checkRequiredParameters(['index','body'], $params); |
|
1665 | - $url = '/' . $this->encode($params['index']) . '/_mapping'; |
|
1664 | + $this->checkRequiredParameters(['index', 'body'], $params); |
|
1665 | + $url = '/'.$this->encode($params['index']).'/_mapping'; |
|
1666 | 1666 | $method = 'PUT'; |
1667 | 1667 | |
1668 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','ignore_unavailable','allow_no_indices','expand_wildcards','write_index_only','pretty','human','error_trace','source','filter_path']); |
|
1668 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'write_index_only', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1669 | 1669 | $headers = [ |
1670 | 1670 | 'Accept' => 'application/json', |
1671 | 1671 | 'Content-Type' => 'application/json', |
@@ -1707,13 +1707,13 @@ discard block |
||
1707 | 1707 | { |
1708 | 1708 | $this->checkRequiredParameters(['body'], $params); |
1709 | 1709 | if (isset($params['index'])) { |
1710 | - $url = '/' . $this->encode($params['index']) . '/_settings'; |
|
1710 | + $url = '/'.$this->encode($params['index']).'/_settings'; |
|
1711 | 1711 | $method = 'PUT'; |
1712 | 1712 | } else { |
1713 | 1713 | $url = '/_settings'; |
1714 | 1714 | $method = 'PUT'; |
1715 | 1715 | } |
1716 | - $url = $this->addQueryString($url, $params, ['master_timeout','timeout','preserve_existing','reopen','ignore_unavailable','allow_no_indices','expand_wildcards','flat_settings','pretty','human','error_trace','source','filter_path']); |
|
1716 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'timeout', 'preserve_existing', 'reopen', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'flat_settings', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1717 | 1717 | $headers = [ |
1718 | 1718 | 'Accept' => 'application/json', |
1719 | 1719 | 'Content-Type' => 'application/json', |
@@ -1749,11 +1749,11 @@ discard block |
||
1749 | 1749 | */ |
1750 | 1750 | public function putTemplate(array $params = []) |
1751 | 1751 | { |
1752 | - $this->checkRequiredParameters(['name','body'], $params); |
|
1753 | - $url = '/_template/' . $this->encode($params['name']); |
|
1752 | + $this->checkRequiredParameters(['name', 'body'], $params); |
|
1753 | + $url = '/_template/'.$this->encode($params['name']); |
|
1754 | 1754 | $method = 'PUT'; |
1755 | 1755 | |
1756 | - $url = $this->addQueryString($url, $params, ['order','create','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
1756 | + $url = $this->addQueryString($url, $params, ['order', 'create', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1757 | 1757 | $headers = [ |
1758 | 1758 | 'Accept' => 'application/json', |
1759 | 1759 | 'Content-Type' => 'application/json', |
@@ -1787,13 +1787,13 @@ discard block |
||
1787 | 1787 | public function recovery(array $params = []) |
1788 | 1788 | { |
1789 | 1789 | if (isset($params['index'])) { |
1790 | - $url = '/' . $this->encode($params['index']) . '/_recovery'; |
|
1790 | + $url = '/'.$this->encode($params['index']).'/_recovery'; |
|
1791 | 1791 | $method = 'GET'; |
1792 | 1792 | } else { |
1793 | 1793 | $url = '/_recovery'; |
1794 | 1794 | $method = 'GET'; |
1795 | 1795 | } |
1796 | - $url = $this->addQueryString($url, $params, ['detailed','active_only','pretty','human','error_trace','source','filter_path']); |
|
1796 | + $url = $this->addQueryString($url, $params, ['detailed', 'active_only', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1797 | 1797 | $headers = [ |
1798 | 1798 | 'Accept' => 'application/json', |
1799 | 1799 | ]; |
@@ -1827,13 +1827,13 @@ discard block |
||
1827 | 1827 | public function refresh(array $params = []) |
1828 | 1828 | { |
1829 | 1829 | if (isset($params['index'])) { |
1830 | - $url = '/' . $this->encode($params['index']) . '/_refresh'; |
|
1830 | + $url = '/'.$this->encode($params['index']).'/_refresh'; |
|
1831 | 1831 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1832 | 1832 | } else { |
1833 | 1833 | $url = '/_refresh'; |
1834 | 1834 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1835 | 1835 | } |
1836 | - $url = $this->addQueryString($url, $params, ['ignore_unavailable','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
1836 | + $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1837 | 1837 | $headers = [ |
1838 | 1838 | 'Accept' => 'application/json', |
1839 | 1839 | ]; |
@@ -1869,10 +1869,10 @@ discard block |
||
1869 | 1869 | public function reloadSearchAnalyzers(array $params = []) |
1870 | 1870 | { |
1871 | 1871 | $this->checkRequiredParameters(['index'], $params); |
1872 | - $url = '/' . $this->encode($params['index']) . '/_reload_search_analyzers'; |
|
1872 | + $url = '/'.$this->encode($params['index']).'/_reload_search_analyzers'; |
|
1873 | 1873 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1874 | 1874 | |
1875 | - $url = $this->addQueryString($url, $params, ['ignore_unavailable','allow_no_indices','expand_wildcards','resource','pretty','human','error_trace','source','filter_path']); |
|
1875 | + $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'resource', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1876 | 1876 | $headers = [ |
1877 | 1877 | 'Accept' => 'application/json', |
1878 | 1878 | ]; |
@@ -1908,10 +1908,10 @@ discard block |
||
1908 | 1908 | public function resolveCluster(array $params = []) |
1909 | 1909 | { |
1910 | 1910 | $this->checkRequiredParameters(['name'], $params); |
1911 | - $url = '/_resolve/cluster/' . $this->encode($params['name']); |
|
1911 | + $url = '/_resolve/cluster/'.$this->encode($params['name']); |
|
1912 | 1912 | $method = 'GET'; |
1913 | 1913 | |
1914 | - $url = $this->addQueryString($url, $params, ['ignore_unavailable','ignore_throttled','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
1914 | + $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'ignore_throttled', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1915 | 1915 | $headers = [ |
1916 | 1916 | 'Accept' => 'application/json', |
1917 | 1917 | ]; |
@@ -1944,10 +1944,10 @@ discard block |
||
1944 | 1944 | public function resolveIndex(array $params = []) |
1945 | 1945 | { |
1946 | 1946 | $this->checkRequiredParameters(['name'], $params); |
1947 | - $url = '/_resolve/index/' . $this->encode($params['name']); |
|
1947 | + $url = '/_resolve/index/'.$this->encode($params['name']); |
|
1948 | 1948 | $method = 'GET'; |
1949 | 1949 | |
1950 | - $url = $this->addQueryString($url, $params, ['expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
1950 | + $url = $this->addQueryString($url, $params, ['expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1951 | 1951 | $headers = [ |
1952 | 1952 | 'Accept' => 'application/json', |
1953 | 1953 | ]; |
@@ -1988,13 +1988,13 @@ discard block |
||
1988 | 1988 | { |
1989 | 1989 | $this->checkRequiredParameters(['alias'], $params); |
1990 | 1990 | if (isset($params['new_index'])) { |
1991 | - $url = '/' . $this->encode($params['alias']) . '/_rollover/' . $this->encode($params['new_index']); |
|
1991 | + $url = '/'.$this->encode($params['alias']).'/_rollover/'.$this->encode($params['new_index']); |
|
1992 | 1992 | $method = 'POST'; |
1993 | 1993 | } else { |
1994 | - $url = '/' . $this->encode($params['alias']) . '/_rollover'; |
|
1994 | + $url = '/'.$this->encode($params['alias']).'/_rollover'; |
|
1995 | 1995 | $method = 'POST'; |
1996 | 1996 | } |
1997 | - $url = $this->addQueryString($url, $params, ['timeout','dry_run','master_timeout','wait_for_active_shards','lazy','pretty','human','error_trace','source','filter_path']); |
|
1997 | + $url = $this->addQueryString($url, $params, ['timeout', 'dry_run', 'master_timeout', 'wait_for_active_shards', 'lazy', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1998 | 1998 | $headers = [ |
1999 | 1999 | 'Accept' => 'application/json', |
2000 | 2000 | 'Content-Type' => 'application/json', |
@@ -2030,13 +2030,13 @@ discard block |
||
2030 | 2030 | public function segments(array $params = []) |
2031 | 2031 | { |
2032 | 2032 | if (isset($params['index'])) { |
2033 | - $url = '/' . $this->encode($params['index']) . '/_segments'; |
|
2033 | + $url = '/'.$this->encode($params['index']).'/_segments'; |
|
2034 | 2034 | $method = 'GET'; |
2035 | 2035 | } else { |
2036 | 2036 | $url = '/_segments'; |
2037 | 2037 | $method = 'GET'; |
2038 | 2038 | } |
2039 | - $url = $this->addQueryString($url, $params, ['ignore_unavailable','allow_no_indices','expand_wildcards','verbose','pretty','human','error_trace','source','filter_path']); |
|
2039 | + $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'verbose', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2040 | 2040 | $headers = [ |
2041 | 2041 | 'Accept' => 'application/json', |
2042 | 2042 | ]; |
@@ -2071,13 +2071,13 @@ discard block |
||
2071 | 2071 | public function shardStores(array $params = []) |
2072 | 2072 | { |
2073 | 2073 | if (isset($params['index'])) { |
2074 | - $url = '/' . $this->encode($params['index']) . '/_shard_stores'; |
|
2074 | + $url = '/'.$this->encode($params['index']).'/_shard_stores'; |
|
2075 | 2075 | $method = 'GET'; |
2076 | 2076 | } else { |
2077 | 2077 | $url = '/_shard_stores'; |
2078 | 2078 | $method = 'GET'; |
2079 | 2079 | } |
2080 | - $url = $this->addQueryString($url, $params, ['status','ignore_unavailable','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
2080 | + $url = $this->addQueryString($url, $params, ['status', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2081 | 2081 | $headers = [ |
2082 | 2082 | 'Accept' => 'application/json', |
2083 | 2083 | ]; |
@@ -2113,11 +2113,11 @@ discard block |
||
2113 | 2113 | */ |
2114 | 2114 | public function shrink(array $params = []) |
2115 | 2115 | { |
2116 | - $this->checkRequiredParameters(['index','target'], $params); |
|
2117 | - $url = '/' . $this->encode($params['index']) . '/_shrink/' . $this->encode($params['target']); |
|
2116 | + $this->checkRequiredParameters(['index', 'target'], $params); |
|
2117 | + $url = '/'.$this->encode($params['index']).'/_shrink/'.$this->encode($params['target']); |
|
2118 | 2118 | $method = 'PUT'; |
2119 | 2119 | |
2120 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','wait_for_active_shards','pretty','human','error_trace','source','filter_path']); |
|
2120 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'wait_for_active_shards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2121 | 2121 | $headers = [ |
2122 | 2122 | 'Accept' => 'application/json', |
2123 | 2123 | 'Content-Type' => 'application/json', |
@@ -2155,10 +2155,10 @@ discard block |
||
2155 | 2155 | public function simulateIndexTemplate(array $params = []) |
2156 | 2156 | { |
2157 | 2157 | $this->checkRequiredParameters(['name'], $params); |
2158 | - $url = '/_index_template/_simulate_index/' . $this->encode($params['name']); |
|
2158 | + $url = '/_index_template/_simulate_index/'.$this->encode($params['name']); |
|
2159 | 2159 | $method = 'POST'; |
2160 | 2160 | |
2161 | - $url = $this->addQueryString($url, $params, ['create','cause','master_timeout','include_defaults','pretty','human','error_trace','source','filter_path']); |
|
2161 | + $url = $this->addQueryString($url, $params, ['create', 'cause', 'master_timeout', 'include_defaults', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2162 | 2162 | $headers = [ |
2163 | 2163 | 'Accept' => 'application/json', |
2164 | 2164 | 'Content-Type' => 'application/json', |
@@ -2195,13 +2195,13 @@ discard block |
||
2195 | 2195 | public function simulateTemplate(array $params = []) |
2196 | 2196 | { |
2197 | 2197 | if (isset($params['name'])) { |
2198 | - $url = '/_index_template/_simulate/' . $this->encode($params['name']); |
|
2198 | + $url = '/_index_template/_simulate/'.$this->encode($params['name']); |
|
2199 | 2199 | $method = 'POST'; |
2200 | 2200 | } else { |
2201 | 2201 | $url = '/_index_template/_simulate'; |
2202 | 2202 | $method = 'POST'; |
2203 | 2203 | } |
2204 | - $url = $this->addQueryString($url, $params, ['create','cause','master_timeout','include_defaults','pretty','human','error_trace','source','filter_path']); |
|
2204 | + $url = $this->addQueryString($url, $params, ['create', 'cause', 'master_timeout', 'include_defaults', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2205 | 2205 | $headers = [ |
2206 | 2206 | 'Accept' => 'application/json', |
2207 | 2207 | 'Content-Type' => 'application/json', |
@@ -2238,11 +2238,11 @@ discard block |
||
2238 | 2238 | */ |
2239 | 2239 | public function split(array $params = []) |
2240 | 2240 | { |
2241 | - $this->checkRequiredParameters(['index','target'], $params); |
|
2242 | - $url = '/' . $this->encode($params['index']) . '/_split/' . $this->encode($params['target']); |
|
2241 | + $this->checkRequiredParameters(['index', 'target'], $params); |
|
2242 | + $url = '/'.$this->encode($params['index']).'/_split/'.$this->encode($params['target']); |
|
2243 | 2243 | $method = 'PUT'; |
2244 | 2244 | |
2245 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','wait_for_active_shards','pretty','human','error_trace','source','filter_path']); |
|
2245 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'wait_for_active_shards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2246 | 2246 | $headers = [ |
2247 | 2247 | 'Accept' => 'application/json', |
2248 | 2248 | 'Content-Type' => 'application/json', |
@@ -2284,19 +2284,19 @@ discard block |
||
2284 | 2284 | public function stats(array $params = []) |
2285 | 2285 | { |
2286 | 2286 | if (isset($params['index']) && isset($params['metric'])) { |
2287 | - $url = '/' . $this->encode($params['index']) . '/_stats/' . $this->encode($params['metric']); |
|
2287 | + $url = '/'.$this->encode($params['index']).'/_stats/'.$this->encode($params['metric']); |
|
2288 | 2288 | $method = 'GET'; |
2289 | 2289 | } elseif (isset($params['metric'])) { |
2290 | - $url = '/_stats/' . $this->encode($params['metric']); |
|
2290 | + $url = '/_stats/'.$this->encode($params['metric']); |
|
2291 | 2291 | $method = 'GET'; |
2292 | 2292 | } elseif (isset($params['index'])) { |
2293 | - $url = '/' . $this->encode($params['index']) . '/_stats'; |
|
2293 | + $url = '/'.$this->encode($params['index']).'/_stats'; |
|
2294 | 2294 | $method = 'GET'; |
2295 | 2295 | } else { |
2296 | 2296 | $url = '/_stats'; |
2297 | 2297 | $method = 'GET'; |
2298 | 2298 | } |
2299 | - $url = $this->addQueryString($url, $params, ['completion_fields','fielddata_fields','fields','groups','level','include_segment_file_sizes','include_unloaded_segments','expand_wildcards','forbid_closed_indices','pretty','human','error_trace','source','filter_path']); |
|
2299 | + $url = $this->addQueryString($url, $params, ['completion_fields', 'fielddata_fields', 'fields', 'groups', 'level', 'include_segment_file_sizes', 'include_unloaded_segments', 'expand_wildcards', 'forbid_closed_indices', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2300 | 2300 | $headers = [ |
2301 | 2301 | 'Accept' => 'application/json', |
2302 | 2302 | ]; |
@@ -2334,10 +2334,10 @@ discard block |
||
2334 | 2334 | public function unfreeze(array $params = []) |
2335 | 2335 | { |
2336 | 2336 | $this->checkRequiredParameters(['index'], $params); |
2337 | - $url = '/' . $this->encode($params['index']) . '/_unfreeze'; |
|
2337 | + $url = '/'.$this->encode($params['index']).'/_unfreeze'; |
|
2338 | 2338 | $method = 'POST'; |
2339 | 2339 | |
2340 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','ignore_unavailable','allow_no_indices','expand_wildcards','wait_for_active_shards','pretty','human','error_trace','source','filter_path']); |
|
2340 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'wait_for_active_shards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2341 | 2341 | $headers = [ |
2342 | 2342 | 'Accept' => 'application/json', |
2343 | 2343 | ]; |
@@ -2373,7 +2373,7 @@ discard block |
||
2373 | 2373 | $url = '/_aliases'; |
2374 | 2374 | $method = 'POST'; |
2375 | 2375 | |
2376 | - $url = $this->addQueryString($url, $params, ['timeout','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
2376 | + $url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2377 | 2377 | $headers = [ |
2378 | 2378 | 'Accept' => 'application/json', |
2379 | 2379 | 'Content-Type' => 'application/json', |
@@ -2418,13 +2418,13 @@ discard block |
||
2418 | 2418 | public function validateQuery(array $params = []) |
2419 | 2419 | { |
2420 | 2420 | if (isset($params['index'])) { |
2421 | - $url = '/' . $this->encode($params['index']) . '/_validate/query'; |
|
2421 | + $url = '/'.$this->encode($params['index']).'/_validate/query'; |
|
2422 | 2422 | $method = empty($params['body']) ? 'GET' : 'POST'; |
2423 | 2423 | } else { |
2424 | 2424 | $url = '/_validate/query'; |
2425 | 2425 | $method = empty($params['body']) ? 'GET' : 'POST'; |
2426 | 2426 | } |
2427 | - $url = $this->addQueryString($url, $params, ['explain','ignore_unavailable','allow_no_indices','expand_wildcards','q','analyzer','analyze_wildcard','default_operator','df','lenient','rewrite','all_shards','pretty','human','error_trace','source','filter_path']); |
|
2427 | + $url = $this->addQueryString($url, $params, ['explain', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'q', 'analyzer', 'analyze_wildcard', 'default_operator', 'df', 'lenient', 'rewrite', 'all_shards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2428 | 2428 | $headers = [ |
2429 | 2429 | 'Accept' => 'application/json', |
2430 | 2430 | 'Content-Type' => 'application/json', |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Indices extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Indices extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Adds a block to an index. |
33 | 32 | * |
@@ -55,13 +55,13 @@ discard block |
||
55 | 55 | { |
56 | 56 | $this->checkRequiredParameters(['inference_id'], $params); |
57 | 57 | if (isset($params['task_type'])) { |
58 | - $url = '/_inference/' . $this->encode($params['task_type']) . '/' . $this->encode($params['inference_id']); |
|
58 | + $url = '/_inference/'.$this->encode($params['task_type']).'/'.$this->encode($params['inference_id']); |
|
59 | 59 | $method = 'DELETE'; |
60 | 60 | } else { |
61 | - $url = '/_inference/' . $this->encode($params['inference_id']); |
|
61 | + $url = '/_inference/'.$this->encode($params['inference_id']); |
|
62 | 62 | $method = 'DELETE'; |
63 | 63 | } |
64 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
64 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
65 | 65 | $headers = [ |
66 | 66 | 'Accept' => 'application/json', |
67 | 67 | ]; |
@@ -96,13 +96,13 @@ discard block |
||
96 | 96 | { |
97 | 97 | $this->checkRequiredParameters(['inference_id'], $params); |
98 | 98 | if (isset($params['task_type'])) { |
99 | - $url = '/_inference/' . $this->encode($params['task_type']) . '/' . $this->encode($params['inference_id']); |
|
99 | + $url = '/_inference/'.$this->encode($params['task_type']).'/'.$this->encode($params['inference_id']); |
|
100 | 100 | $method = 'GET'; |
101 | 101 | } else { |
102 | - $url = '/_inference/' . $this->encode($params['inference_id']); |
|
102 | + $url = '/_inference/'.$this->encode($params['inference_id']); |
|
103 | 103 | $method = 'GET'; |
104 | 104 | } |
105 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
105 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
106 | 106 | $headers = [ |
107 | 107 | 'Accept' => 'application/json', |
108 | 108 | ]; |
@@ -138,13 +138,13 @@ discard block |
||
138 | 138 | { |
139 | 139 | $this->checkRequiredParameters(['inference_id'], $params); |
140 | 140 | if (isset($params['task_type'])) { |
141 | - $url = '/_inference/' . $this->encode($params['task_type']) . '/' . $this->encode($params['inference_id']); |
|
141 | + $url = '/_inference/'.$this->encode($params['task_type']).'/'.$this->encode($params['inference_id']); |
|
142 | 142 | $method = 'POST'; |
143 | 143 | } else { |
144 | - $url = '/_inference/' . $this->encode($params['inference_id']); |
|
144 | + $url = '/_inference/'.$this->encode($params['inference_id']); |
|
145 | 145 | $method = 'POST'; |
146 | 146 | } |
147 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
147 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
148 | 148 | $headers = [ |
149 | 149 | 'Accept' => 'application/json', |
150 | 150 | 'Content-Type' => 'application/json', |
@@ -181,13 +181,13 @@ discard block |
||
181 | 181 | { |
182 | 182 | $this->checkRequiredParameters(['inference_id'], $params); |
183 | 183 | if (isset($params['task_type'])) { |
184 | - $url = '/_inference/' . $this->encode($params['task_type']) . '/' . $this->encode($params['inference_id']); |
|
184 | + $url = '/_inference/'.$this->encode($params['task_type']).'/'.$this->encode($params['inference_id']); |
|
185 | 185 | $method = 'PUT'; |
186 | 186 | } else { |
187 | - $url = '/_inference/' . $this->encode($params['inference_id']); |
|
187 | + $url = '/_inference/'.$this->encode($params['inference_id']); |
|
188 | 188 | $method = 'PUT'; |
189 | 189 | } |
190 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
190 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
191 | 191 | $headers = [ |
192 | 192 | 'Accept' => 'application/json', |
193 | 193 | 'Content-Type' => 'application/json', |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Inference extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Inference extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Delete model in the Inference API |
33 | 32 | * |
@@ -54,10 +54,10 @@ discard block |
||
54 | 54 | public function cleanupRepository(array $params = []) |
55 | 55 | { |
56 | 56 | $this->checkRequiredParameters(['repository'], $params); |
57 | - $url = '/_snapshot/' . $this->encode($params['repository']) . '/_cleanup'; |
|
57 | + $url = '/_snapshot/'.$this->encode($params['repository']).'/_cleanup'; |
|
58 | 58 | $method = 'POST'; |
59 | 59 | |
60 | - $url = $this->addQueryString($url, $params, ['master_timeout','timeout','pretty','human','error_trace','source','filter_path']); |
|
60 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
61 | 61 | $headers = [ |
62 | 62 | 'Accept' => 'application/json', |
63 | 63 | ]; |
@@ -92,11 +92,11 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function clone(array $params = []) |
94 | 94 | { |
95 | - $this->checkRequiredParameters(['repository','snapshot','target_snapshot','body'], $params); |
|
96 | - $url = '/_snapshot/' . $this->encode($params['repository']) . '/' . $this->encode($params['snapshot']) . '/_clone/' . $this->encode($params['target_snapshot']); |
|
95 | + $this->checkRequiredParameters(['repository', 'snapshot', 'target_snapshot', 'body'], $params); |
|
96 | + $url = '/_snapshot/'.$this->encode($params['repository']).'/'.$this->encode($params['snapshot']).'/_clone/'.$this->encode($params['target_snapshot']); |
|
97 | 97 | $method = 'PUT'; |
98 | 98 | |
99 | - $url = $this->addQueryString($url, $params, ['master_timeout','pretty','human','error_trace','source','filter_path']); |
|
99 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
100 | 100 | $headers = [ |
101 | 101 | 'Accept' => 'application/json', |
102 | 102 | 'Content-Type' => 'application/json', |
@@ -132,11 +132,11 @@ discard block |
||
132 | 132 | */ |
133 | 133 | public function create(array $params = []) |
134 | 134 | { |
135 | - $this->checkRequiredParameters(['repository','snapshot'], $params); |
|
136 | - $url = '/_snapshot/' . $this->encode($params['repository']) . '/' . $this->encode($params['snapshot']); |
|
135 | + $this->checkRequiredParameters(['repository', 'snapshot'], $params); |
|
136 | + $url = '/_snapshot/'.$this->encode($params['repository']).'/'.$this->encode($params['snapshot']); |
|
137 | 137 | $method = 'PUT'; |
138 | 138 | |
139 | - $url = $this->addQueryString($url, $params, ['master_timeout','wait_for_completion','pretty','human','error_trace','source','filter_path']); |
|
139 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'wait_for_completion', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
140 | 140 | $headers = [ |
141 | 141 | 'Accept' => 'application/json', |
142 | 142 | 'Content-Type' => 'application/json', |
@@ -172,11 +172,11 @@ discard block |
||
172 | 172 | */ |
173 | 173 | public function createRepository(array $params = []) |
174 | 174 | { |
175 | - $this->checkRequiredParameters(['repository','body'], $params); |
|
176 | - $url = '/_snapshot/' . $this->encode($params['repository']); |
|
175 | + $this->checkRequiredParameters(['repository', 'body'], $params); |
|
176 | + $url = '/_snapshot/'.$this->encode($params['repository']); |
|
177 | 177 | $method = 'PUT'; |
178 | 178 | |
179 | - $url = $this->addQueryString($url, $params, ['master_timeout','timeout','verify','pretty','human','error_trace','source','filter_path']); |
|
179 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'timeout', 'verify', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
180 | 180 | $headers = [ |
181 | 181 | 'Accept' => 'application/json', |
182 | 182 | 'Content-Type' => 'application/json', |
@@ -210,11 +210,11 @@ discard block |
||
210 | 210 | */ |
211 | 211 | public function delete(array $params = []) |
212 | 212 | { |
213 | - $this->checkRequiredParameters(['repository','snapshot'], $params); |
|
214 | - $url = '/_snapshot/' . $this->encode($params['repository']) . '/' . $this->encode($params['snapshot']); |
|
213 | + $this->checkRequiredParameters(['repository', 'snapshot'], $params); |
|
214 | + $url = '/_snapshot/'.$this->encode($params['repository']).'/'.$this->encode($params['snapshot']); |
|
215 | 215 | $method = 'DELETE'; |
216 | 216 | |
217 | - $url = $this->addQueryString($url, $params, ['master_timeout','pretty','human','error_trace','source','filter_path']); |
|
217 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
218 | 218 | $headers = [ |
219 | 219 | 'Accept' => 'application/json', |
220 | 220 | ]; |
@@ -248,10 +248,10 @@ discard block |
||
248 | 248 | public function deleteRepository(array $params = []) |
249 | 249 | { |
250 | 250 | $this->checkRequiredParameters(['repository'], $params); |
251 | - $url = '/_snapshot/' . $this->encode($params['repository']); |
|
251 | + $url = '/_snapshot/'.$this->encode($params['repository']); |
|
252 | 252 | $method = 'DELETE'; |
253 | 253 | |
254 | - $url = $this->addQueryString($url, $params, ['master_timeout','timeout','pretty','human','error_trace','source','filter_path']); |
|
254 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
255 | 255 | $headers = [ |
256 | 256 | 'Accept' => 'application/json', |
257 | 257 | ]; |
@@ -296,11 +296,11 @@ discard block |
||
296 | 296 | */ |
297 | 297 | public function get(array $params = []) |
298 | 298 | { |
299 | - $this->checkRequiredParameters(['repository','snapshot'], $params); |
|
300 | - $url = '/_snapshot/' . $this->encode($params['repository']) . '/' . $this->encode($params['snapshot']); |
|
299 | + $this->checkRequiredParameters(['repository', 'snapshot'], $params); |
|
300 | + $url = '/_snapshot/'.$this->encode($params['repository']).'/'.$this->encode($params['snapshot']); |
|
301 | 301 | $method = 'GET'; |
302 | 302 | |
303 | - $url = $this->addQueryString($url, $params, ['master_timeout','ignore_unavailable','index_names','index_details','include_repository','sort','size','order','from_sort_value','after','offset','slm_policy_filter','verbose','pretty','human','error_trace','source','filter_path']); |
|
303 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'ignore_unavailable', 'index_names', 'index_details', 'include_repository', 'sort', 'size', 'order', 'from_sort_value', 'after', 'offset', 'slm_policy_filter', 'verbose', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
304 | 304 | $headers = [ |
305 | 305 | 'Accept' => 'application/json', |
306 | 306 | ]; |
@@ -333,13 +333,13 @@ discard block |
||
333 | 333 | public function getRepository(array $params = []) |
334 | 334 | { |
335 | 335 | if (isset($params['repository'])) { |
336 | - $url = '/_snapshot/' . $this->encode($params['repository']); |
|
336 | + $url = '/_snapshot/'.$this->encode($params['repository']); |
|
337 | 337 | $method = 'GET'; |
338 | 338 | } else { |
339 | 339 | $url = '/_snapshot'; |
340 | 340 | $method = 'GET'; |
341 | 341 | } |
342 | - $url = $this->addQueryString($url, $params, ['master_timeout','local','pretty','human','error_trace','source','filter_path']); |
|
342 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'local', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
343 | 343 | $headers = [ |
344 | 344 | 'Accept' => 'application/json', |
345 | 345 | ]; |
@@ -382,10 +382,10 @@ discard block |
||
382 | 382 | public function repositoryAnalyze(array $params = []) |
383 | 383 | { |
384 | 384 | $this->checkRequiredParameters(['repository'], $params); |
385 | - $url = '/_snapshot/' . $this->encode($params['repository']) . '/_analyze'; |
|
385 | + $url = '/_snapshot/'.$this->encode($params['repository']).'/_analyze'; |
|
386 | 386 | $method = 'POST'; |
387 | 387 | |
388 | - $url = $this->addQueryString($url, $params, ['blob_count','concurrency','read_node_count','early_read_node_count','seed','rare_action_probability','max_blob_size','max_total_data_size','timeout','detailed','rarely_abort_writes','pretty','human','error_trace','source','filter_path']); |
|
388 | + $url = $this->addQueryString($url, $params, ['blob_count', 'concurrency', 'read_node_count', 'early_read_node_count', 'seed', 'rare_action_probability', 'max_blob_size', 'max_total_data_size', 'timeout', 'detailed', 'rarely_abort_writes', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
389 | 389 | $headers = [ |
390 | 390 | 'Accept' => 'application/json', |
391 | 391 | ]; |
@@ -420,11 +420,11 @@ discard block |
||
420 | 420 | */ |
421 | 421 | public function restore(array $params = []) |
422 | 422 | { |
423 | - $this->checkRequiredParameters(['repository','snapshot'], $params); |
|
424 | - $url = '/_snapshot/' . $this->encode($params['repository']) . '/' . $this->encode($params['snapshot']) . '/_restore'; |
|
423 | + $this->checkRequiredParameters(['repository', 'snapshot'], $params); |
|
424 | + $url = '/_snapshot/'.$this->encode($params['repository']).'/'.$this->encode($params['snapshot']).'/_restore'; |
|
425 | 425 | $method = 'POST'; |
426 | 426 | |
427 | - $url = $this->addQueryString($url, $params, ['master_timeout','wait_for_completion','pretty','human','error_trace','source','filter_path']); |
|
427 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'wait_for_completion', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
428 | 428 | $headers = [ |
429 | 429 | 'Accept' => 'application/json', |
430 | 430 | 'Content-Type' => 'application/json', |
@@ -459,16 +459,16 @@ discard block |
||
459 | 459 | public function status(array $params = []) |
460 | 460 | { |
461 | 461 | if (isset($params['repository']) && isset($params['snapshot'])) { |
462 | - $url = '/_snapshot/' . $this->encode($params['repository']) . '/' . $this->encode($params['snapshot']) . '/_status'; |
|
462 | + $url = '/_snapshot/'.$this->encode($params['repository']).'/'.$this->encode($params['snapshot']).'/_status'; |
|
463 | 463 | $method = 'GET'; |
464 | 464 | } elseif (isset($params['repository'])) { |
465 | - $url = '/_snapshot/' . $this->encode($params['repository']) . '/_status'; |
|
465 | + $url = '/_snapshot/'.$this->encode($params['repository']).'/_status'; |
|
466 | 466 | $method = 'GET'; |
467 | 467 | } else { |
468 | 468 | $url = '/_snapshot/_status'; |
469 | 469 | $method = 'GET'; |
470 | 470 | } |
471 | - $url = $this->addQueryString($url, $params, ['master_timeout','ignore_unavailable','pretty','human','error_trace','source','filter_path']); |
|
471 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'ignore_unavailable', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
472 | 472 | $headers = [ |
473 | 473 | 'Accept' => 'application/json', |
474 | 474 | ]; |
@@ -502,10 +502,10 @@ discard block |
||
502 | 502 | public function verifyRepository(array $params = []) |
503 | 503 | { |
504 | 504 | $this->checkRequiredParameters(['repository'], $params); |
505 | - $url = '/_snapshot/' . $this->encode($params['repository']) . '/_verify'; |
|
505 | + $url = '/_snapshot/'.$this->encode($params['repository']).'/_verify'; |
|
506 | 506 | $method = 'POST'; |
507 | 507 | |
508 | - $url = $this->addQueryString($url, $params, ['master_timeout','timeout','pretty','human','error_trace','source','filter_path']); |
|
508 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
509 | 509 | $headers = [ |
510 | 510 | 'Accept' => 'application/json', |
511 | 511 | ]; |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Snapshot extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Snapshot extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Removes stale data from repository. |
33 | 32 | * |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function clearRepositoriesMeteringArchive(array $params = []) |
55 | 55 | { |
56 | - $this->checkRequiredParameters(['node_id','max_archive_version'], $params); |
|
57 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/_repositories_metering/' . $this->encode($params['max_archive_version']); |
|
56 | + $this->checkRequiredParameters(['node_id', 'max_archive_version'], $params); |
|
57 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/_repositories_metering/'.$this->encode($params['max_archive_version']); |
|
58 | 58 | $method = 'DELETE'; |
59 | 59 | |
60 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
60 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
61 | 61 | $headers = [ |
62 | 62 | 'Accept' => 'application/json', |
63 | 63 | ]; |
@@ -90,10 +90,10 @@ discard block |
||
90 | 90 | public function getRepositoriesMeteringInfo(array $params = []) |
91 | 91 | { |
92 | 92 | $this->checkRequiredParameters(['node_id'], $params); |
93 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/_repositories_metering'; |
|
93 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/_repositories_metering'; |
|
94 | 94 | $method = 'GET'; |
95 | 95 | |
96 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
96 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
97 | 97 | $headers = [ |
98 | 98 | 'Accept' => 'application/json', |
99 | 99 | ]; |
@@ -131,13 +131,13 @@ discard block |
||
131 | 131 | public function hotThreads(array $params = []) |
132 | 132 | { |
133 | 133 | if (isset($params['node_id'])) { |
134 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/hot_threads'; |
|
134 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/hot_threads'; |
|
135 | 135 | $method = 'GET'; |
136 | 136 | } else { |
137 | 137 | $url = '/_nodes/hot_threads'; |
138 | 138 | $method = 'GET'; |
139 | 139 | } |
140 | - $url = $this->addQueryString($url, $params, ['interval','snapshots','threads','ignore_idle_threads','type','sort','timeout','pretty','human','error_trace','source','filter_path']); |
|
140 | + $url = $this->addQueryString($url, $params, ['interval', 'snapshots', 'threads', 'ignore_idle_threads', 'type', 'sort', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
141 | 141 | $headers = [ |
142 | 142 | 'Accept' => 'text/plain', |
143 | 143 | ]; |
@@ -171,19 +171,19 @@ discard block |
||
171 | 171 | public function info(array $params = []) |
172 | 172 | { |
173 | 173 | if (isset($params['node_id']) && isset($params['metric'])) { |
174 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/' . $this->encode($params['metric']); |
|
174 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/'.$this->encode($params['metric']); |
|
175 | 175 | $method = 'GET'; |
176 | 176 | } elseif (isset($params['node_id'])) { |
177 | - $url = '/_nodes/' . $this->encode($params['node_id']); |
|
177 | + $url = '/_nodes/'.$this->encode($params['node_id']); |
|
178 | 178 | $method = 'GET'; |
179 | 179 | } elseif (isset($params['metric'])) { |
180 | - $url = '/_nodes/' . $this->encode($params['metric']); |
|
180 | + $url = '/_nodes/'.$this->encode($params['metric']); |
|
181 | 181 | $method = 'GET'; |
182 | 182 | } else { |
183 | 183 | $url = '/_nodes'; |
184 | 184 | $method = 'GET'; |
185 | 185 | } |
186 | - $url = $this->addQueryString($url, $params, ['flat_settings','timeout','pretty','human','error_trace','source','filter_path']); |
|
186 | + $url = $this->addQueryString($url, $params, ['flat_settings', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
187 | 187 | $headers = [ |
188 | 188 | 'Accept' => 'application/json', |
189 | 189 | ]; |
@@ -216,13 +216,13 @@ discard block |
||
216 | 216 | public function reloadSecureSettings(array $params = []) |
217 | 217 | { |
218 | 218 | if (isset($params['node_id'])) { |
219 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/reload_secure_settings'; |
|
219 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/reload_secure_settings'; |
|
220 | 220 | $method = 'POST'; |
221 | 221 | } else { |
222 | 222 | $url = '/_nodes/reload_secure_settings'; |
223 | 223 | $method = 'POST'; |
224 | 224 | } |
225 | - $url = $this->addQueryString($url, $params, ['timeout','pretty','human','error_trace','source','filter_path']); |
|
225 | + $url = $this->addQueryString($url, $params, ['timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
226 | 226 | $headers = [ |
227 | 227 | 'Accept' => 'application/json', |
228 | 228 | 'Content-Type' => 'application/json', |
@@ -265,25 +265,25 @@ discard block |
||
265 | 265 | public function stats(array $params = []) |
266 | 266 | { |
267 | 267 | if (isset($params['metric']) && isset($params['index_metric']) && isset($params['node_id'])) { |
268 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/stats/' . $this->encode($params['metric']) . '/' . $this->encode($params['index_metric']); |
|
268 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/stats/'.$this->encode($params['metric']).'/'.$this->encode($params['index_metric']); |
|
269 | 269 | $method = 'GET'; |
270 | 270 | } elseif (isset($params['metric']) && isset($params['node_id'])) { |
271 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/stats/' . $this->encode($params['metric']); |
|
271 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/stats/'.$this->encode($params['metric']); |
|
272 | 272 | $method = 'GET'; |
273 | 273 | } elseif (isset($params['metric']) && isset($params['index_metric'])) { |
274 | - $url = '/_nodes/stats/' . $this->encode($params['metric']) . '/' . $this->encode($params['index_metric']); |
|
274 | + $url = '/_nodes/stats/'.$this->encode($params['metric']).'/'.$this->encode($params['index_metric']); |
|
275 | 275 | $method = 'GET'; |
276 | 276 | } elseif (isset($params['node_id'])) { |
277 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/stats'; |
|
277 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/stats'; |
|
278 | 278 | $method = 'GET'; |
279 | 279 | } elseif (isset($params['metric'])) { |
280 | - $url = '/_nodes/stats/' . $this->encode($params['metric']); |
|
280 | + $url = '/_nodes/stats/'.$this->encode($params['metric']); |
|
281 | 281 | $method = 'GET'; |
282 | 282 | } else { |
283 | 283 | $url = '/_nodes/stats'; |
284 | 284 | $method = 'GET'; |
285 | 285 | } |
286 | - $url = $this->addQueryString($url, $params, ['completion_fields','fielddata_fields','fields','groups','level','types','timeout','include_segment_file_sizes','include_unloaded_segments','pretty','human','error_trace','source','filter_path']); |
|
286 | + $url = $this->addQueryString($url, $params, ['completion_fields', 'fielddata_fields', 'fields', 'groups', 'level', 'types', 'timeout', 'include_segment_file_sizes', 'include_unloaded_segments', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
287 | 287 | $headers = [ |
288 | 288 | 'Accept' => 'application/json', |
289 | 289 | ]; |
@@ -316,19 +316,19 @@ discard block |
||
316 | 316 | public function usage(array $params = []) |
317 | 317 | { |
318 | 318 | if (isset($params['metric']) && isset($params['node_id'])) { |
319 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/usage/' . $this->encode($params['metric']); |
|
319 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/usage/'.$this->encode($params['metric']); |
|
320 | 320 | $method = 'GET'; |
321 | 321 | } elseif (isset($params['node_id'])) { |
322 | - $url = '/_nodes/' . $this->encode($params['node_id']) . '/usage'; |
|
322 | + $url = '/_nodes/'.$this->encode($params['node_id']).'/usage'; |
|
323 | 323 | $method = 'GET'; |
324 | 324 | } elseif (isset($params['metric'])) { |
325 | - $url = '/_nodes/usage/' . $this->encode($params['metric']); |
|
325 | + $url = '/_nodes/usage/'.$this->encode($params['metric']); |
|
326 | 326 | $method = 'GET'; |
327 | 327 | } else { |
328 | 328 | $url = '/_nodes/usage'; |
329 | 329 | $method = 'GET'; |
330 | 330 | } |
331 | - $url = $this->addQueryString($url, $params, ['timeout','pretty','human','error_trace','source','filter_path']); |
|
331 | + $url = $this->addQueryString($url, $params, ['timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
332 | 332 | $headers = [ |
333 | 333 | 'Accept' => 'application/json', |
334 | 334 | ]; |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Nodes extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Nodes extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Removes the archived repositories metering information present in the cluster. |
33 | 32 | * |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | public function clearTrainedModelDeploymentCache(array $params = []) |
53 | 53 | { |
54 | 54 | $this->checkRequiredParameters(['model_id'], $params); |
55 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/deployment/cache/_clear'; |
|
55 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/deployment/cache/_clear'; |
|
56 | 56 | $method = 'POST'; |
57 | 57 | |
58 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
58 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
59 | 59 | $headers = [ |
60 | 60 | 'Accept' => 'application/json', |
61 | 61 | 'Content-Type' => 'application/json', |
@@ -92,10 +92,10 @@ discard block |
||
92 | 92 | public function closeJob(array $params = []) |
93 | 93 | { |
94 | 94 | $this->checkRequiredParameters(['job_id'], $params); |
95 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_close'; |
|
95 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_close'; |
|
96 | 96 | $method = 'POST'; |
97 | 97 | |
98 | - $url = $this->addQueryString($url, $params, ['allow_no_match','force','timeout','pretty','human','error_trace','source','filter_path']); |
|
98 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
99 | 99 | $headers = [ |
100 | 100 | 'Accept' => 'application/json', |
101 | 101 | 'Content-Type' => 'application/json', |
@@ -128,10 +128,10 @@ discard block |
||
128 | 128 | public function deleteCalendar(array $params = []) |
129 | 129 | { |
130 | 130 | $this->checkRequiredParameters(['calendar_id'], $params); |
131 | - $url = '/_ml/calendars/' . $this->encode($params['calendar_id']); |
|
131 | + $url = '/_ml/calendars/'.$this->encode($params['calendar_id']); |
|
132 | 132 | $method = 'DELETE'; |
133 | 133 | |
134 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
134 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
135 | 135 | $headers = [ |
136 | 136 | 'Accept' => 'application/json', |
137 | 137 | ]; |
@@ -163,11 +163,11 @@ discard block |
||
163 | 163 | */ |
164 | 164 | public function deleteCalendarEvent(array $params = []) |
165 | 165 | { |
166 | - $this->checkRequiredParameters(['calendar_id','event_id'], $params); |
|
167 | - $url = '/_ml/calendars/' . $this->encode($params['calendar_id']) . '/events/' . $this->encode($params['event_id']); |
|
166 | + $this->checkRequiredParameters(['calendar_id', 'event_id'], $params); |
|
167 | + $url = '/_ml/calendars/'.$this->encode($params['calendar_id']).'/events/'.$this->encode($params['event_id']); |
|
168 | 168 | $method = 'DELETE'; |
169 | 169 | |
170 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
170 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
171 | 171 | $headers = [ |
172 | 172 | 'Accept' => 'application/json', |
173 | 173 | ]; |
@@ -199,11 +199,11 @@ discard block |
||
199 | 199 | */ |
200 | 200 | public function deleteCalendarJob(array $params = []) |
201 | 201 | { |
202 | - $this->checkRequiredParameters(['calendar_id','job_id'], $params); |
|
203 | - $url = '/_ml/calendars/' . $this->encode($params['calendar_id']) . '/jobs/' . $this->encode($params['job_id']); |
|
202 | + $this->checkRequiredParameters(['calendar_id', 'job_id'], $params); |
|
203 | + $url = '/_ml/calendars/'.$this->encode($params['calendar_id']).'/jobs/'.$this->encode($params['job_id']); |
|
204 | 204 | $method = 'DELETE'; |
205 | 205 | |
206 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
206 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
207 | 207 | $headers = [ |
208 | 208 | 'Accept' => 'application/json', |
209 | 209 | ]; |
@@ -237,10 +237,10 @@ discard block |
||
237 | 237 | public function deleteDataFrameAnalytics(array $params = []) |
238 | 238 | { |
239 | 239 | $this->checkRequiredParameters(['id'], $params); |
240 | - $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']); |
|
240 | + $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']); |
|
241 | 241 | $method = 'DELETE'; |
242 | 242 | |
243 | - $url = $this->addQueryString($url, $params, ['force','timeout','pretty','human','error_trace','source','filter_path']); |
|
243 | + $url = $this->addQueryString($url, $params, ['force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
244 | 244 | $headers = [ |
245 | 245 | 'Accept' => 'application/json', |
246 | 246 | ]; |
@@ -273,10 +273,10 @@ discard block |
||
273 | 273 | public function deleteDatafeed(array $params = []) |
274 | 274 | { |
275 | 275 | $this->checkRequiredParameters(['datafeed_id'], $params); |
276 | - $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']); |
|
276 | + $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']); |
|
277 | 277 | $method = 'DELETE'; |
278 | 278 | |
279 | - $url = $this->addQueryString($url, $params, ['force','pretty','human','error_trace','source','filter_path']); |
|
279 | + $url = $this->addQueryString($url, $params, ['force', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
280 | 280 | $headers = [ |
281 | 281 | 'Accept' => 'application/json', |
282 | 282 | ]; |
@@ -310,13 +310,13 @@ discard block |
||
310 | 310 | public function deleteExpiredData(array $params = []) |
311 | 311 | { |
312 | 312 | if (isset($params['job_id'])) { |
313 | - $url = '/_ml/_delete_expired_data/' . $this->encode($params['job_id']); |
|
313 | + $url = '/_ml/_delete_expired_data/'.$this->encode($params['job_id']); |
|
314 | 314 | $method = 'DELETE'; |
315 | 315 | } else { |
316 | 316 | $url = '/_ml/_delete_expired_data'; |
317 | 317 | $method = 'DELETE'; |
318 | 318 | } |
319 | - $url = $this->addQueryString($url, $params, ['requests_per_second','timeout','pretty','human','error_trace','source','filter_path']); |
|
319 | + $url = $this->addQueryString($url, $params, ['requests_per_second', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
320 | 320 | $headers = [ |
321 | 321 | 'Accept' => 'application/json', |
322 | 322 | 'Content-Type' => 'application/json', |
@@ -349,10 +349,10 @@ discard block |
||
349 | 349 | public function deleteFilter(array $params = []) |
350 | 350 | { |
351 | 351 | $this->checkRequiredParameters(['filter_id'], $params); |
352 | - $url = '/_ml/filters/' . $this->encode($params['filter_id']); |
|
352 | + $url = '/_ml/filters/'.$this->encode($params['filter_id']); |
|
353 | 353 | $method = 'DELETE'; |
354 | 354 | |
355 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
355 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
356 | 356 | $headers = [ |
357 | 357 | 'Accept' => 'application/json', |
358 | 358 | ]; |
@@ -388,13 +388,13 @@ discard block |
||
388 | 388 | { |
389 | 389 | $this->checkRequiredParameters(['job_id'], $params); |
390 | 390 | if (isset($params['forecast_id'])) { |
391 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_forecast/' . $this->encode($params['forecast_id']); |
|
391 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_forecast/'.$this->encode($params['forecast_id']); |
|
392 | 392 | $method = 'DELETE'; |
393 | 393 | } else { |
394 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_forecast'; |
|
394 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_forecast'; |
|
395 | 395 | $method = 'DELETE'; |
396 | 396 | } |
397 | - $url = $this->addQueryString($url, $params, ['allow_no_forecasts','timeout','pretty','human','error_trace','source','filter_path']); |
|
397 | + $url = $this->addQueryString($url, $params, ['allow_no_forecasts', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
398 | 398 | $headers = [ |
399 | 399 | 'Accept' => 'application/json', |
400 | 400 | ]; |
@@ -429,10 +429,10 @@ discard block |
||
429 | 429 | public function deleteJob(array $params = []) |
430 | 430 | { |
431 | 431 | $this->checkRequiredParameters(['job_id'], $params); |
432 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']); |
|
432 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']); |
|
433 | 433 | $method = 'DELETE'; |
434 | 434 | |
435 | - $url = $this->addQueryString($url, $params, ['force','wait_for_completion','delete_user_annotations','pretty','human','error_trace','source','filter_path']); |
|
435 | + $url = $this->addQueryString($url, $params, ['force', 'wait_for_completion', 'delete_user_annotations', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
436 | 436 | $headers = [ |
437 | 437 | 'Accept' => 'application/json', |
438 | 438 | ]; |
@@ -464,11 +464,11 @@ discard block |
||
464 | 464 | */ |
465 | 465 | public function deleteModelSnapshot(array $params = []) |
466 | 466 | { |
467 | - $this->checkRequiredParameters(['job_id','snapshot_id'], $params); |
|
468 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']); |
|
467 | + $this->checkRequiredParameters(['job_id', 'snapshot_id'], $params); |
|
468 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']); |
|
469 | 469 | $method = 'DELETE'; |
470 | 470 | |
471 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
471 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
472 | 472 | $headers = [ |
473 | 473 | 'Accept' => 'application/json', |
474 | 474 | ]; |
@@ -502,10 +502,10 @@ discard block |
||
502 | 502 | public function deleteTrainedModel(array $params = []) |
503 | 503 | { |
504 | 504 | $this->checkRequiredParameters(['model_id'], $params); |
505 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']); |
|
505 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']); |
|
506 | 506 | $method = 'DELETE'; |
507 | 507 | |
508 | - $url = $this->addQueryString($url, $params, ['timeout','force','pretty','human','error_trace','source','filter_path']); |
|
508 | + $url = $this->addQueryString($url, $params, ['timeout', 'force', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
509 | 509 | $headers = [ |
510 | 510 | 'Accept' => 'application/json', |
511 | 511 | ]; |
@@ -537,11 +537,11 @@ discard block |
||
537 | 537 | */ |
538 | 538 | public function deleteTrainedModelAlias(array $params = []) |
539 | 539 | { |
540 | - $this->checkRequiredParameters(['model_alias','model_id'], $params); |
|
541 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/model_aliases/' . $this->encode($params['model_alias']); |
|
540 | + $this->checkRequiredParameters(['model_alias', 'model_id'], $params); |
|
541 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/model_aliases/'.$this->encode($params['model_alias']); |
|
542 | 542 | $method = 'DELETE'; |
543 | 543 | |
544 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
544 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
545 | 545 | $headers = [ |
546 | 546 | 'Accept' => 'application/json', |
547 | 547 | 'Content-Type' => 'application/json', |
@@ -576,7 +576,7 @@ discard block |
||
576 | 576 | $url = '/_ml/anomaly_detectors/_estimate_model_memory'; |
577 | 577 | $method = 'POST'; |
578 | 578 | |
579 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
579 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
580 | 580 | $headers = [ |
581 | 581 | 'Accept' => 'application/json', |
582 | 582 | 'Content-Type' => 'application/json', |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | $url = '/_ml/data_frame/_evaluate'; |
612 | 612 | $method = 'POST'; |
613 | 613 | |
614 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
614 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
615 | 615 | $headers = [ |
616 | 616 | 'Accept' => 'application/json', |
617 | 617 | 'Content-Type' => 'application/json', |
@@ -644,13 +644,13 @@ discard block |
||
644 | 644 | public function explainDataFrameAnalytics(array $params = []) |
645 | 645 | { |
646 | 646 | if (isset($params['id'])) { |
647 | - $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_explain'; |
|
647 | + $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_explain'; |
|
648 | 648 | $method = empty($params['body']) ? 'GET' : 'POST'; |
649 | 649 | } else { |
650 | 650 | $url = '/_ml/data_frame/analytics/_explain'; |
651 | 651 | $method = empty($params['body']) ? 'GET' : 'POST'; |
652 | 652 | } |
653 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
653 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
654 | 654 | $headers = [ |
655 | 655 | 'Accept' => 'application/json', |
656 | 656 | 'Content-Type' => 'application/json', |
@@ -689,10 +689,10 @@ discard block |
||
689 | 689 | public function flushJob(array $params = []) |
690 | 690 | { |
691 | 691 | $this->checkRequiredParameters(['job_id'], $params); |
692 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_flush'; |
|
692 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_flush'; |
|
693 | 693 | $method = 'POST'; |
694 | 694 | |
695 | - $url = $this->addQueryString($url, $params, ['calc_interim','start','end','advance_time','skip_time','pretty','human','error_trace','source','filter_path']); |
|
695 | + $url = $this->addQueryString($url, $params, ['calc_interim', 'start', 'end', 'advance_time', 'skip_time', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
696 | 696 | $headers = [ |
697 | 697 | 'Accept' => 'application/json', |
698 | 698 | 'Content-Type' => 'application/json', |
@@ -729,10 +729,10 @@ discard block |
||
729 | 729 | public function forecast(array $params = []) |
730 | 730 | { |
731 | 731 | $this->checkRequiredParameters(['job_id'], $params); |
732 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_forecast'; |
|
732 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_forecast'; |
|
733 | 733 | $method = 'POST'; |
734 | 734 | |
735 | - $url = $this->addQueryString($url, $params, ['duration','expires_in','max_model_memory','pretty','human','error_trace','source','filter_path']); |
|
735 | + $url = $this->addQueryString($url, $params, ['duration', 'expires_in', 'max_model_memory', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
736 | 736 | $headers = [ |
737 | 737 | 'Accept' => 'application/json', |
738 | 738 | 'Content-Type' => 'application/json', |
@@ -777,13 +777,13 @@ discard block |
||
777 | 777 | { |
778 | 778 | $this->checkRequiredParameters(['job_id'], $params); |
779 | 779 | if (isset($params['timestamp'])) { |
780 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/buckets/' . $this->encode($params['timestamp']); |
|
780 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/buckets/'.$this->encode($params['timestamp']); |
|
781 | 781 | $method = empty($params['body']) ? 'GET' : 'POST'; |
782 | 782 | } else { |
783 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/buckets'; |
|
783 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/buckets'; |
|
784 | 784 | $method = empty($params['body']) ? 'GET' : 'POST'; |
785 | 785 | } |
786 | - $url = $this->addQueryString($url, $params, ['expand','exclude_interim','from','size','start','end','anomaly_score','sort','desc','pretty','human','error_trace','source','filter_path']); |
|
786 | + $url = $this->addQueryString($url, $params, ['expand', 'exclude_interim', 'from', 'size', 'start', 'end', 'anomaly_score', 'sort', 'desc', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
787 | 787 | $headers = [ |
788 | 788 | 'Accept' => 'application/json', |
789 | 789 | 'Content-Type' => 'application/json', |
@@ -821,10 +821,10 @@ discard block |
||
821 | 821 | public function getCalendarEvents(array $params = []) |
822 | 822 | { |
823 | 823 | $this->checkRequiredParameters(['calendar_id'], $params); |
824 | - $url = '/_ml/calendars/' . $this->encode($params['calendar_id']) . '/events'; |
|
824 | + $url = '/_ml/calendars/'.$this->encode($params['calendar_id']).'/events'; |
|
825 | 825 | $method = 'GET'; |
826 | 826 | |
827 | - $url = $this->addQueryString($url, $params, ['job_id','start','end','from','size','pretty','human','error_trace','source','filter_path']); |
|
827 | + $url = $this->addQueryString($url, $params, ['job_id', 'start', 'end', 'from', 'size', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
828 | 828 | $headers = [ |
829 | 829 | 'Accept' => 'application/json', |
830 | 830 | ]; |
@@ -858,13 +858,13 @@ discard block |
||
858 | 858 | public function getCalendars(array $params = []) |
859 | 859 | { |
860 | 860 | if (isset($params['calendar_id'])) { |
861 | - $url = '/_ml/calendars/' . $this->encode($params['calendar_id']); |
|
861 | + $url = '/_ml/calendars/'.$this->encode($params['calendar_id']); |
|
862 | 862 | $method = empty($params['body']) ? 'GET' : 'POST'; |
863 | 863 | } else { |
864 | 864 | $url = '/_ml/calendars'; |
865 | 865 | $method = empty($params['body']) ? 'GET' : 'POST'; |
866 | 866 | } |
867 | - $url = $this->addQueryString($url, $params, ['from','size','pretty','human','error_trace','source','filter_path']); |
|
867 | + $url = $this->addQueryString($url, $params, ['from', 'size', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
868 | 868 | $headers = [ |
869 | 869 | 'Accept' => 'application/json', |
870 | 870 | 'Content-Type' => 'application/json', |
@@ -903,13 +903,13 @@ discard block |
||
903 | 903 | { |
904 | 904 | $this->checkRequiredParameters(['job_id'], $params); |
905 | 905 | if (isset($params['category_id'])) { |
906 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/categories/' . $this->encode($params['category_id']); |
|
906 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/categories/'.$this->encode($params['category_id']); |
|
907 | 907 | $method = empty($params['body']) ? 'GET' : 'POST'; |
908 | 908 | } else { |
909 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/categories/'; |
|
909 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/categories/'; |
|
910 | 910 | $method = empty($params['body']) ? 'GET' : 'POST'; |
911 | 911 | } |
912 | - $url = $this->addQueryString($url, $params, ['from','size','partition_field_value','pretty','human','error_trace','source','filter_path']); |
|
912 | + $url = $this->addQueryString($url, $params, ['from', 'size', 'partition_field_value', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
913 | 913 | $headers = [ |
914 | 914 | 'Accept' => 'application/json', |
915 | 915 | 'Content-Type' => 'application/json', |
@@ -945,13 +945,13 @@ discard block |
||
945 | 945 | public function getDataFrameAnalytics(array $params = []) |
946 | 946 | { |
947 | 947 | if (isset($params['id'])) { |
948 | - $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']); |
|
948 | + $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']); |
|
949 | 949 | $method = 'GET'; |
950 | 950 | } else { |
951 | 951 | $url = '/_ml/data_frame/analytics'; |
952 | 952 | $method = 'GET'; |
953 | 953 | } |
954 | - $url = $this->addQueryString($url, $params, ['allow_no_match','from','size','exclude_generated','pretty','human','error_trace','source','filter_path']); |
|
954 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'from', 'size', 'exclude_generated', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
955 | 955 | $headers = [ |
956 | 956 | 'Accept' => 'application/json', |
957 | 957 | ]; |
@@ -986,13 +986,13 @@ discard block |
||
986 | 986 | public function getDataFrameAnalyticsStats(array $params = []) |
987 | 987 | { |
988 | 988 | if (isset($params['id'])) { |
989 | - $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_stats'; |
|
989 | + $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_stats'; |
|
990 | 990 | $method = 'GET'; |
991 | 991 | } else { |
992 | 992 | $url = '/_ml/data_frame/analytics/_stats'; |
993 | 993 | $method = 'GET'; |
994 | 994 | } |
995 | - $url = $this->addQueryString($url, $params, ['allow_no_match','from','size','verbose','pretty','human','error_trace','source','filter_path']); |
|
995 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'from', 'size', 'verbose', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
996 | 996 | $headers = [ |
997 | 997 | 'Accept' => 'application/json', |
998 | 998 | ]; |
@@ -1024,13 +1024,13 @@ discard block |
||
1024 | 1024 | public function getDatafeedStats(array $params = []) |
1025 | 1025 | { |
1026 | 1026 | if (isset($params['datafeed_id'])) { |
1027 | - $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']) . '/_stats'; |
|
1027 | + $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']).'/_stats'; |
|
1028 | 1028 | $method = 'GET'; |
1029 | 1029 | } else { |
1030 | 1030 | $url = '/_ml/datafeeds/_stats'; |
1031 | 1031 | $method = 'GET'; |
1032 | 1032 | } |
1033 | - $url = $this->addQueryString($url, $params, ['allow_no_match','pretty','human','error_trace','source','filter_path']); |
|
1033 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1034 | 1034 | $headers = [ |
1035 | 1035 | 'Accept' => 'application/json', |
1036 | 1036 | ]; |
@@ -1063,13 +1063,13 @@ discard block |
||
1063 | 1063 | public function getDatafeeds(array $params = []) |
1064 | 1064 | { |
1065 | 1065 | if (isset($params['datafeed_id'])) { |
1066 | - $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']); |
|
1066 | + $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']); |
|
1067 | 1067 | $method = 'GET'; |
1068 | 1068 | } else { |
1069 | 1069 | $url = '/_ml/datafeeds'; |
1070 | 1070 | $method = 'GET'; |
1071 | 1071 | } |
1072 | - $url = $this->addQueryString($url, $params, ['allow_no_match','exclude_generated','pretty','human','error_trace','source','filter_path']); |
|
1072 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'exclude_generated', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1073 | 1073 | $headers = [ |
1074 | 1074 | 'Accept' => 'application/json', |
1075 | 1075 | ]; |
@@ -1102,13 +1102,13 @@ discard block |
||
1102 | 1102 | public function getFilters(array $params = []) |
1103 | 1103 | { |
1104 | 1104 | if (isset($params['filter_id'])) { |
1105 | - $url = '/_ml/filters/' . $this->encode($params['filter_id']); |
|
1105 | + $url = '/_ml/filters/'.$this->encode($params['filter_id']); |
|
1106 | 1106 | $method = 'GET'; |
1107 | 1107 | } else { |
1108 | 1108 | $url = '/_ml/filters'; |
1109 | 1109 | $method = 'GET'; |
1110 | 1110 | } |
1111 | - $url = $this->addQueryString($url, $params, ['from','size','pretty','human','error_trace','source','filter_path']); |
|
1111 | + $url = $this->addQueryString($url, $params, ['from', 'size', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1112 | 1112 | $headers = [ |
1113 | 1113 | 'Accept' => 'application/json', |
1114 | 1114 | ]; |
@@ -1149,10 +1149,10 @@ discard block |
||
1149 | 1149 | public function getInfluencers(array $params = []) |
1150 | 1150 | { |
1151 | 1151 | $this->checkRequiredParameters(['job_id'], $params); |
1152 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/influencers'; |
|
1152 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/influencers'; |
|
1153 | 1153 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1154 | 1154 | |
1155 | - $url = $this->addQueryString($url, $params, ['exclude_interim','from','size','start','end','influencer_score','sort','desc','pretty','human','error_trace','source','filter_path']); |
|
1155 | + $url = $this->addQueryString($url, $params, ['exclude_interim', 'from', 'size', 'start', 'end', 'influencer_score', 'sort', 'desc', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1156 | 1156 | $headers = [ |
1157 | 1157 | 'Accept' => 'application/json', |
1158 | 1158 | 'Content-Type' => 'application/json', |
@@ -1185,13 +1185,13 @@ discard block |
||
1185 | 1185 | public function getJobStats(array $params = []) |
1186 | 1186 | { |
1187 | 1187 | if (isset($params['job_id'])) { |
1188 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_stats'; |
|
1188 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_stats'; |
|
1189 | 1189 | $method = 'GET'; |
1190 | 1190 | } else { |
1191 | 1191 | $url = '/_ml/anomaly_detectors/_stats'; |
1192 | 1192 | $method = 'GET'; |
1193 | 1193 | } |
1194 | - $url = $this->addQueryString($url, $params, ['allow_no_match','pretty','human','error_trace','source','filter_path']); |
|
1194 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1195 | 1195 | $headers = [ |
1196 | 1196 | 'Accept' => 'application/json', |
1197 | 1197 | ]; |
@@ -1224,13 +1224,13 @@ discard block |
||
1224 | 1224 | public function getJobs(array $params = []) |
1225 | 1225 | { |
1226 | 1226 | if (isset($params['job_id'])) { |
1227 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']); |
|
1227 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']); |
|
1228 | 1228 | $method = 'GET'; |
1229 | 1229 | } else { |
1230 | 1230 | $url = '/_ml/anomaly_detectors'; |
1231 | 1231 | $method = 'GET'; |
1232 | 1232 | } |
1233 | - $url = $this->addQueryString($url, $params, ['allow_no_match','exclude_generated','pretty','human','error_trace','source','filter_path']); |
|
1233 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'exclude_generated', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1234 | 1234 | $headers = [ |
1235 | 1235 | 'Accept' => 'application/json', |
1236 | 1236 | ]; |
@@ -1263,13 +1263,13 @@ discard block |
||
1263 | 1263 | public function getMemoryStats(array $params = []) |
1264 | 1264 | { |
1265 | 1265 | if (isset($params['node_id'])) { |
1266 | - $url = '/_ml/memory/' . $this->encode($params['node_id']) . '/_stats'; |
|
1266 | + $url = '/_ml/memory/'.$this->encode($params['node_id']).'/_stats'; |
|
1267 | 1267 | $method = 'GET'; |
1268 | 1268 | } else { |
1269 | 1269 | $url = '/_ml/memory/_stats'; |
1270 | 1270 | $method = 'GET'; |
1271 | 1271 | } |
1272 | - $url = $this->addQueryString($url, $params, ['master_timeout','timeout','pretty','human','error_trace','source','filter_path']); |
|
1272 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1273 | 1273 | $headers = [ |
1274 | 1274 | 'Accept' => 'application/json', |
1275 | 1275 | ]; |
@@ -1302,11 +1302,11 @@ discard block |
||
1302 | 1302 | */ |
1303 | 1303 | public function getModelSnapshotUpgradeStats(array $params = []) |
1304 | 1304 | { |
1305 | - $this->checkRequiredParameters(['job_id','snapshot_id'], $params); |
|
1306 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']) . '/_upgrade/_stats'; |
|
1305 | + $this->checkRequiredParameters(['job_id', 'snapshot_id'], $params); |
|
1306 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']).'/_upgrade/_stats'; |
|
1307 | 1307 | $method = 'GET'; |
1308 | 1308 | |
1309 | - $url = $this->addQueryString($url, $params, ['allow_no_match','pretty','human','error_trace','source','filter_path']); |
|
1309 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1310 | 1310 | $headers = [ |
1311 | 1311 | 'Accept' => 'application/json', |
1312 | 1312 | ]; |
@@ -1347,13 +1347,13 @@ discard block |
||
1347 | 1347 | { |
1348 | 1348 | $this->checkRequiredParameters(['job_id'], $params); |
1349 | 1349 | if (isset($params['snapshot_id'])) { |
1350 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']); |
|
1350 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']); |
|
1351 | 1351 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1352 | 1352 | } else { |
1353 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots'; |
|
1353 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots'; |
|
1354 | 1354 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1355 | 1355 | } |
1356 | - $url = $this->addQueryString($url, $params, ['from','size','start','end','sort','desc','pretty','human','error_trace','source','filter_path']); |
|
1356 | + $url = $this->addQueryString($url, $params, ['from', 'size', 'start', 'end', 'sort', 'desc', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1357 | 1357 | $headers = [ |
1358 | 1358 | 'Accept' => 'application/json', |
1359 | 1359 | 'Content-Type' => 'application/json', |
@@ -1394,10 +1394,10 @@ discard block |
||
1394 | 1394 | public function getOverallBuckets(array $params = []) |
1395 | 1395 | { |
1396 | 1396 | $this->checkRequiredParameters(['job_id'], $params); |
1397 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/overall_buckets'; |
|
1397 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/overall_buckets'; |
|
1398 | 1398 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1399 | 1399 | |
1400 | - $url = $this->addQueryString($url, $params, ['top_n','bucket_span','overall_score','exclude_interim','start','end','allow_no_match','pretty','human','error_trace','source','filter_path']); |
|
1400 | + $url = $this->addQueryString($url, $params, ['top_n', 'bucket_span', 'overall_score', 'exclude_interim', 'start', 'end', 'allow_no_match', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1401 | 1401 | $headers = [ |
1402 | 1402 | 'Accept' => 'application/json', |
1403 | 1403 | 'Content-Type' => 'application/json', |
@@ -1439,10 +1439,10 @@ discard block |
||
1439 | 1439 | public function getRecords(array $params = []) |
1440 | 1440 | { |
1441 | 1441 | $this->checkRequiredParameters(['job_id'], $params); |
1442 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/records'; |
|
1442 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/records'; |
|
1443 | 1443 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1444 | 1444 | |
1445 | - $url = $this->addQueryString($url, $params, ['exclude_interim','from','size','start','end','record_score','sort','desc','pretty','human','error_trace','source','filter_path']); |
|
1445 | + $url = $this->addQueryString($url, $params, ['exclude_interim', 'from', 'size', 'start', 'end', 'record_score', 'sort', 'desc', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1446 | 1446 | $headers = [ |
1447 | 1447 | 'Accept' => 'application/json', |
1448 | 1448 | 'Content-Type' => 'application/json', |
@@ -1482,13 +1482,13 @@ discard block |
||
1482 | 1482 | public function getTrainedModels(array $params = []) |
1483 | 1483 | { |
1484 | 1484 | if (isset($params['model_id'])) { |
1485 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']); |
|
1485 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']); |
|
1486 | 1486 | $method = 'GET'; |
1487 | 1487 | } else { |
1488 | 1488 | $url = '/_ml/trained_models'; |
1489 | 1489 | $method = 'GET'; |
1490 | 1490 | } |
1491 | - $url = $this->addQueryString($url, $params, ['allow_no_match','include','include_model_definition','decompress_definition','from','size','tags','exclude_generated','pretty','human','error_trace','source','filter_path']); |
|
1491 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'include', 'include_model_definition', 'decompress_definition', 'from', 'size', 'tags', 'exclude_generated', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1492 | 1492 | $headers = [ |
1493 | 1493 | 'Accept' => 'application/json', |
1494 | 1494 | ]; |
@@ -1522,13 +1522,13 @@ discard block |
||
1522 | 1522 | public function getTrainedModelsStats(array $params = []) |
1523 | 1523 | { |
1524 | 1524 | if (isset($params['model_id'])) { |
1525 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/_stats'; |
|
1525 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/_stats'; |
|
1526 | 1526 | $method = 'GET'; |
1527 | 1527 | } else { |
1528 | 1528 | $url = '/_ml/trained_models/_stats'; |
1529 | 1529 | $method = 'GET'; |
1530 | 1530 | } |
1531 | - $url = $this->addQueryString($url, $params, ['allow_no_match','from','size','pretty','human','error_trace','source','filter_path']); |
|
1531 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'from', 'size', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1532 | 1532 | $headers = [ |
1533 | 1533 | 'Accept' => 'application/json', |
1534 | 1534 | ]; |
@@ -1561,11 +1561,11 @@ discard block |
||
1561 | 1561 | */ |
1562 | 1562 | public function inferTrainedModel(array $params = []) |
1563 | 1563 | { |
1564 | - $this->checkRequiredParameters(['model_id','body'], $params); |
|
1565 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/_infer'; |
|
1564 | + $this->checkRequiredParameters(['model_id', 'body'], $params); |
|
1565 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/_infer'; |
|
1566 | 1566 | $method = 'POST'; |
1567 | 1567 | |
1568 | - $url = $this->addQueryString($url, $params, ['timeout','pretty','human','error_trace','source','filter_path']); |
|
1568 | + $url = $this->addQueryString($url, $params, ['timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1569 | 1569 | $headers = [ |
1570 | 1570 | 'Accept' => 'application/json', |
1571 | 1571 | 'Content-Type' => 'application/json', |
@@ -1598,7 +1598,7 @@ discard block |
||
1598 | 1598 | $url = '/_ml/info'; |
1599 | 1599 | $method = 'GET'; |
1600 | 1600 | |
1601 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1601 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1602 | 1602 | $headers = [ |
1603 | 1603 | 'Accept' => 'application/json', |
1604 | 1604 | ]; |
@@ -1631,10 +1631,10 @@ discard block |
||
1631 | 1631 | public function openJob(array $params = []) |
1632 | 1632 | { |
1633 | 1633 | $this->checkRequiredParameters(['job_id'], $params); |
1634 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_open'; |
|
1634 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_open'; |
|
1635 | 1635 | $method = 'POST'; |
1636 | 1636 | |
1637 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1637 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1638 | 1638 | $headers = [ |
1639 | 1639 | 'Accept' => 'application/json', |
1640 | 1640 | 'Content-Type' => 'application/json', |
@@ -1667,11 +1667,11 @@ discard block |
||
1667 | 1667 | */ |
1668 | 1668 | public function postCalendarEvents(array $params = []) |
1669 | 1669 | { |
1670 | - $this->checkRequiredParameters(['calendar_id','body'], $params); |
|
1671 | - $url = '/_ml/calendars/' . $this->encode($params['calendar_id']) . '/events'; |
|
1670 | + $this->checkRequiredParameters(['calendar_id', 'body'], $params); |
|
1671 | + $url = '/_ml/calendars/'.$this->encode($params['calendar_id']).'/events'; |
|
1672 | 1672 | $method = 'POST'; |
1673 | 1673 | |
1674 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1674 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1675 | 1675 | $headers = [ |
1676 | 1676 | 'Accept' => 'application/json', |
1677 | 1677 | 'Content-Type' => 'application/json', |
@@ -1706,11 +1706,11 @@ discard block |
||
1706 | 1706 | */ |
1707 | 1707 | public function postData(array $params = []) |
1708 | 1708 | { |
1709 | - $this->checkRequiredParameters(['job_id','body'], $params); |
|
1710 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_data'; |
|
1709 | + $this->checkRequiredParameters(['job_id', 'body'], $params); |
|
1710 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_data'; |
|
1711 | 1711 | $method = 'POST'; |
1712 | 1712 | |
1713 | - $url = $this->addQueryString($url, $params, ['reset_start','reset_end','pretty','human','error_trace','source','filter_path']); |
|
1713 | + $url = $this->addQueryString($url, $params, ['reset_start', 'reset_end', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1714 | 1714 | $headers = [ |
1715 | 1715 | 'Accept' => 'application/json', |
1716 | 1716 | 'Content-Type' => isset($params['body']) && (is_string($params['body']) || $this->isAssociativeArray($params['body'])) ? 'application/json' : 'application/x-ndjson', |
@@ -1743,13 +1743,13 @@ discard block |
||
1743 | 1743 | public function previewDataFrameAnalytics(array $params = []) |
1744 | 1744 | { |
1745 | 1745 | if (isset($params['id'])) { |
1746 | - $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_preview'; |
|
1746 | + $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_preview'; |
|
1747 | 1747 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1748 | 1748 | } else { |
1749 | 1749 | $url = '/_ml/data_frame/analytics/_preview'; |
1750 | 1750 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1751 | 1751 | } |
1752 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1752 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1753 | 1753 | $headers = [ |
1754 | 1754 | 'Accept' => 'application/json', |
1755 | 1755 | 'Content-Type' => 'application/json', |
@@ -1784,13 +1784,13 @@ discard block |
||
1784 | 1784 | public function previewDatafeed(array $params = []) |
1785 | 1785 | { |
1786 | 1786 | if (isset($params['datafeed_id'])) { |
1787 | - $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']) . '/_preview'; |
|
1787 | + $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']).'/_preview'; |
|
1788 | 1788 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1789 | 1789 | } else { |
1790 | 1790 | $url = '/_ml/datafeeds/_preview'; |
1791 | 1791 | $method = empty($params['body']) ? 'GET' : 'POST'; |
1792 | 1792 | } |
1793 | - $url = $this->addQueryString($url, $params, ['start','end','pretty','human','error_trace','source','filter_path']); |
|
1793 | + $url = $this->addQueryString($url, $params, ['start', 'end', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1794 | 1794 | $headers = [ |
1795 | 1795 | 'Accept' => 'application/json', |
1796 | 1796 | 'Content-Type' => 'application/json', |
@@ -1824,10 +1824,10 @@ discard block |
||
1824 | 1824 | public function putCalendar(array $params = []) |
1825 | 1825 | { |
1826 | 1826 | $this->checkRequiredParameters(['calendar_id'], $params); |
1827 | - $url = '/_ml/calendars/' . $this->encode($params['calendar_id']); |
|
1827 | + $url = '/_ml/calendars/'.$this->encode($params['calendar_id']); |
|
1828 | 1828 | $method = 'PUT'; |
1829 | 1829 | |
1830 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1830 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1831 | 1831 | $headers = [ |
1832 | 1832 | 'Accept' => 'application/json', |
1833 | 1833 | 'Content-Type' => 'application/json', |
@@ -1860,11 +1860,11 @@ discard block |
||
1860 | 1860 | */ |
1861 | 1861 | public function putCalendarJob(array $params = []) |
1862 | 1862 | { |
1863 | - $this->checkRequiredParameters(['calendar_id','job_id'], $params); |
|
1864 | - $url = '/_ml/calendars/' . $this->encode($params['calendar_id']) . '/jobs/' . $this->encode($params['job_id']); |
|
1863 | + $this->checkRequiredParameters(['calendar_id', 'job_id'], $params); |
|
1864 | + $url = '/_ml/calendars/'.$this->encode($params['calendar_id']).'/jobs/'.$this->encode($params['job_id']); |
|
1865 | 1865 | $method = 'PUT'; |
1866 | 1866 | |
1867 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1867 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1868 | 1868 | $headers = [ |
1869 | 1869 | 'Accept' => 'application/json', |
1870 | 1870 | ]; |
@@ -1896,11 +1896,11 @@ discard block |
||
1896 | 1896 | */ |
1897 | 1897 | public function putDataFrameAnalytics(array $params = []) |
1898 | 1898 | { |
1899 | - $this->checkRequiredParameters(['id','body'], $params); |
|
1900 | - $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']); |
|
1899 | + $this->checkRequiredParameters(['id', 'body'], $params); |
|
1900 | + $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']); |
|
1901 | 1901 | $method = 'PUT'; |
1902 | 1902 | |
1903 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1903 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1904 | 1904 | $headers = [ |
1905 | 1905 | 'Accept' => 'application/json', |
1906 | 1906 | 'Content-Type' => 'application/json', |
@@ -1937,11 +1937,11 @@ discard block |
||
1937 | 1937 | */ |
1938 | 1938 | public function putDatafeed(array $params = []) |
1939 | 1939 | { |
1940 | - $this->checkRequiredParameters(['datafeed_id','body'], $params); |
|
1941 | - $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']); |
|
1940 | + $this->checkRequiredParameters(['datafeed_id', 'body'], $params); |
|
1941 | + $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']); |
|
1942 | 1942 | $method = 'PUT'; |
1943 | 1943 | |
1944 | - $url = $this->addQueryString($url, $params, ['ignore_unavailable','allow_no_indices','ignore_throttled','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
1944 | + $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'ignore_throttled', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1945 | 1945 | $headers = [ |
1946 | 1946 | 'Accept' => 'application/json', |
1947 | 1947 | 'Content-Type' => 'application/json', |
@@ -1974,11 +1974,11 @@ discard block |
||
1974 | 1974 | */ |
1975 | 1975 | public function putFilter(array $params = []) |
1976 | 1976 | { |
1977 | - $this->checkRequiredParameters(['filter_id','body'], $params); |
|
1978 | - $url = '/_ml/filters/' . $this->encode($params['filter_id']); |
|
1977 | + $this->checkRequiredParameters(['filter_id', 'body'], $params); |
|
1978 | + $url = '/_ml/filters/'.$this->encode($params['filter_id']); |
|
1979 | 1979 | $method = 'PUT'; |
1980 | 1980 | |
1981 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
1981 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1982 | 1982 | $headers = [ |
1983 | 1983 | 'Accept' => 'application/json', |
1984 | 1984 | 'Content-Type' => 'application/json', |
@@ -2015,11 +2015,11 @@ discard block |
||
2015 | 2015 | */ |
2016 | 2016 | public function putJob(array $params = []) |
2017 | 2017 | { |
2018 | - $this->checkRequiredParameters(['job_id','body'], $params); |
|
2019 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']); |
|
2018 | + $this->checkRequiredParameters(['job_id', 'body'], $params); |
|
2019 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']); |
|
2020 | 2020 | $method = 'PUT'; |
2021 | 2021 | |
2022 | - $url = $this->addQueryString($url, $params, ['ignore_unavailable','allow_no_indices','ignore_throttled','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
2022 | + $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'ignore_throttled', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2023 | 2023 | $headers = [ |
2024 | 2024 | 'Accept' => 'application/json', |
2025 | 2025 | 'Content-Type' => 'application/json', |
@@ -2054,11 +2054,11 @@ discard block |
||
2054 | 2054 | */ |
2055 | 2055 | public function putTrainedModel(array $params = []) |
2056 | 2056 | { |
2057 | - $this->checkRequiredParameters(['model_id','body'], $params); |
|
2058 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']); |
|
2057 | + $this->checkRequiredParameters(['model_id', 'body'], $params); |
|
2058 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']); |
|
2059 | 2059 | $method = 'PUT'; |
2060 | 2060 | |
2061 | - $url = $this->addQueryString($url, $params, ['defer_definition_decompression','wait_for_completion','pretty','human','error_trace','source','filter_path']); |
|
2061 | + $url = $this->addQueryString($url, $params, ['defer_definition_decompression', 'wait_for_completion', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2062 | 2062 | $headers = [ |
2063 | 2063 | 'Accept' => 'application/json', |
2064 | 2064 | 'Content-Type' => 'application/json', |
@@ -2092,11 +2092,11 @@ discard block |
||
2092 | 2092 | */ |
2093 | 2093 | public function putTrainedModelAlias(array $params = []) |
2094 | 2094 | { |
2095 | - $this->checkRequiredParameters(['model_alias','model_id'], $params); |
|
2096 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/model_aliases/' . $this->encode($params['model_alias']); |
|
2095 | + $this->checkRequiredParameters(['model_alias', 'model_id'], $params); |
|
2096 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/model_aliases/'.$this->encode($params['model_alias']); |
|
2097 | 2097 | $method = 'PUT'; |
2098 | 2098 | |
2099 | - $url = $this->addQueryString($url, $params, ['reassign','pretty','human','error_trace','source','filter_path']); |
|
2099 | + $url = $this->addQueryString($url, $params, ['reassign', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2100 | 2100 | $headers = [ |
2101 | 2101 | 'Accept' => 'application/json', |
2102 | 2102 | 'Content-Type' => 'application/json', |
@@ -2130,11 +2130,11 @@ discard block |
||
2130 | 2130 | */ |
2131 | 2131 | public function putTrainedModelDefinitionPart(array $params = []) |
2132 | 2132 | { |
2133 | - $this->checkRequiredParameters(['model_id','part','body'], $params); |
|
2134 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/definition/' . $this->encode($params['part']); |
|
2133 | + $this->checkRequiredParameters(['model_id', 'part', 'body'], $params); |
|
2134 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/definition/'.$this->encode($params['part']); |
|
2135 | 2135 | $method = 'PUT'; |
2136 | 2136 | |
2137 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2137 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2138 | 2138 | $headers = [ |
2139 | 2139 | 'Accept' => 'application/json', |
2140 | 2140 | 'Content-Type' => 'application/json', |
@@ -2167,11 +2167,11 @@ discard block |
||
2167 | 2167 | */ |
2168 | 2168 | public function putTrainedModelVocabulary(array $params = []) |
2169 | 2169 | { |
2170 | - $this->checkRequiredParameters(['model_id','body'], $params); |
|
2171 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/vocabulary'; |
|
2170 | + $this->checkRequiredParameters(['model_id', 'body'], $params); |
|
2171 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/vocabulary'; |
|
2172 | 2172 | $method = 'PUT'; |
2173 | 2173 | |
2174 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2174 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2175 | 2175 | $headers = [ |
2176 | 2176 | 'Accept' => 'application/json', |
2177 | 2177 | 'Content-Type' => 'application/json', |
@@ -2206,10 +2206,10 @@ discard block |
||
2206 | 2206 | public function resetJob(array $params = []) |
2207 | 2207 | { |
2208 | 2208 | $this->checkRequiredParameters(['job_id'], $params); |
2209 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_reset'; |
|
2209 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_reset'; |
|
2210 | 2210 | $method = 'POST'; |
2211 | 2211 | |
2212 | - $url = $this->addQueryString($url, $params, ['wait_for_completion','delete_user_annotations','pretty','human','error_trace','source','filter_path']); |
|
2212 | + $url = $this->addQueryString($url, $params, ['wait_for_completion', 'delete_user_annotations', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2213 | 2213 | $headers = [ |
2214 | 2214 | 'Accept' => 'application/json', |
2215 | 2215 | ]; |
@@ -2243,11 +2243,11 @@ discard block |
||
2243 | 2243 | */ |
2244 | 2244 | public function revertModelSnapshot(array $params = []) |
2245 | 2245 | { |
2246 | - $this->checkRequiredParameters(['job_id','snapshot_id'], $params); |
|
2247 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']) . '/_revert'; |
|
2246 | + $this->checkRequiredParameters(['job_id', 'snapshot_id'], $params); |
|
2247 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']).'/_revert'; |
|
2248 | 2248 | $method = 'POST'; |
2249 | 2249 | |
2250 | - $url = $this->addQueryString($url, $params, ['delete_intervening_results','pretty','human','error_trace','source','filter_path']); |
|
2250 | + $url = $this->addQueryString($url, $params, ['delete_intervening_results', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2251 | 2251 | $headers = [ |
2252 | 2252 | 'Accept' => 'application/json', |
2253 | 2253 | 'Content-Type' => 'application/json', |
@@ -2282,7 +2282,7 @@ discard block |
||
2282 | 2282 | $url = '/_ml/set_upgrade_mode'; |
2283 | 2283 | $method = 'POST'; |
2284 | 2284 | |
2285 | - $url = $this->addQueryString($url, $params, ['enabled','timeout','pretty','human','error_trace','source','filter_path']); |
|
2285 | + $url = $this->addQueryString($url, $params, ['enabled', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2286 | 2286 | $headers = [ |
2287 | 2287 | 'Accept' => 'application/json', |
2288 | 2288 | ]; |
@@ -2316,10 +2316,10 @@ discard block |
||
2316 | 2316 | public function startDataFrameAnalytics(array $params = []) |
2317 | 2317 | { |
2318 | 2318 | $this->checkRequiredParameters(['id'], $params); |
2319 | - $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_start'; |
|
2319 | + $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_start'; |
|
2320 | 2320 | $method = 'POST'; |
2321 | 2321 | |
2322 | - $url = $this->addQueryString($url, $params, ['timeout','pretty','human','error_trace','source','filter_path']); |
|
2322 | + $url = $this->addQueryString($url, $params, ['timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2323 | 2323 | $headers = [ |
2324 | 2324 | 'Accept' => 'application/json', |
2325 | 2325 | 'Content-Type' => 'application/json', |
@@ -2356,10 +2356,10 @@ discard block |
||
2356 | 2356 | public function startDatafeed(array $params = []) |
2357 | 2357 | { |
2358 | 2358 | $this->checkRequiredParameters(['datafeed_id'], $params); |
2359 | - $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']) . '/_start'; |
|
2359 | + $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']).'/_start'; |
|
2360 | 2360 | $method = 'POST'; |
2361 | 2361 | |
2362 | - $url = $this->addQueryString($url, $params, ['start','end','timeout','pretty','human','error_trace','source','filter_path']); |
|
2362 | + $url = $this->addQueryString($url, $params, ['start', 'end', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2363 | 2363 | $headers = [ |
2364 | 2364 | 'Accept' => 'application/json', |
2365 | 2365 | 'Content-Type' => 'application/json', |
@@ -2400,10 +2400,10 @@ discard block |
||
2400 | 2400 | public function startTrainedModelDeployment(array $params = []) |
2401 | 2401 | { |
2402 | 2402 | $this->checkRequiredParameters(['model_id'], $params); |
2403 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/deployment/_start'; |
|
2403 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/deployment/_start'; |
|
2404 | 2404 | $method = 'POST'; |
2405 | 2405 | |
2406 | - $url = $this->addQueryString($url, $params, ['cache_size','deployment_id','number_of_allocations','threads_per_allocation','priority','queue_capacity','timeout','wait_for','pretty','human','error_trace','source','filter_path']); |
|
2406 | + $url = $this->addQueryString($url, $params, ['cache_size', 'deployment_id', 'number_of_allocations', 'threads_per_allocation', 'priority', 'queue_capacity', 'timeout', 'wait_for', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2407 | 2407 | $headers = [ |
2408 | 2408 | 'Accept' => 'application/json', |
2409 | 2409 | 'Content-Type' => 'application/json', |
@@ -2440,10 +2440,10 @@ discard block |
||
2440 | 2440 | public function stopDataFrameAnalytics(array $params = []) |
2441 | 2441 | { |
2442 | 2442 | $this->checkRequiredParameters(['id'], $params); |
2443 | - $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_stop'; |
|
2443 | + $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_stop'; |
|
2444 | 2444 | $method = 'POST'; |
2445 | 2445 | |
2446 | - $url = $this->addQueryString($url, $params, ['allow_no_match','force','timeout','pretty','human','error_trace','source','filter_path']); |
|
2446 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2447 | 2447 | $headers = [ |
2448 | 2448 | 'Accept' => 'application/json', |
2449 | 2449 | 'Content-Type' => 'application/json', |
@@ -2481,10 +2481,10 @@ discard block |
||
2481 | 2481 | public function stopDatafeed(array $params = []) |
2482 | 2482 | { |
2483 | 2483 | $this->checkRequiredParameters(['datafeed_id'], $params); |
2484 | - $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']) . '/_stop'; |
|
2484 | + $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']).'/_stop'; |
|
2485 | 2485 | $method = 'POST'; |
2486 | 2486 | |
2487 | - $url = $this->addQueryString($url, $params, ['allow_no_match','allow_no_datafeeds','force','timeout','pretty','human','error_trace','source','filter_path']); |
|
2487 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'allow_no_datafeeds', 'force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2488 | 2488 | $headers = [ |
2489 | 2489 | 'Accept' => 'application/json', |
2490 | 2490 | 'Content-Type' => 'application/json', |
@@ -2520,10 +2520,10 @@ discard block |
||
2520 | 2520 | public function stopTrainedModelDeployment(array $params = []) |
2521 | 2521 | { |
2522 | 2522 | $this->checkRequiredParameters(['model_id'], $params); |
2523 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/deployment/_stop'; |
|
2523 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/deployment/_stop'; |
|
2524 | 2524 | $method = 'POST'; |
2525 | 2525 | |
2526 | - $url = $this->addQueryString($url, $params, ['allow_no_match','force','pretty','human','error_trace','source','filter_path']); |
|
2526 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'force', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2527 | 2527 | $headers = [ |
2528 | 2528 | 'Accept' => 'application/json', |
2529 | 2529 | 'Content-Type' => 'application/json', |
@@ -2556,11 +2556,11 @@ discard block |
||
2556 | 2556 | */ |
2557 | 2557 | public function updateDataFrameAnalytics(array $params = []) |
2558 | 2558 | { |
2559 | - $this->checkRequiredParameters(['id','body'], $params); |
|
2560 | - $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_update'; |
|
2559 | + $this->checkRequiredParameters(['id', 'body'], $params); |
|
2560 | + $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_update'; |
|
2561 | 2561 | $method = 'POST'; |
2562 | 2562 | |
2563 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2563 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2564 | 2564 | $headers = [ |
2565 | 2565 | 'Accept' => 'application/json', |
2566 | 2566 | 'Content-Type' => 'application/json', |
@@ -2597,11 +2597,11 @@ discard block |
||
2597 | 2597 | */ |
2598 | 2598 | public function updateDatafeed(array $params = []) |
2599 | 2599 | { |
2600 | - $this->checkRequiredParameters(['datafeed_id','body'], $params); |
|
2601 | - $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']) . '/_update'; |
|
2600 | + $this->checkRequiredParameters(['datafeed_id', 'body'], $params); |
|
2601 | + $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']).'/_update'; |
|
2602 | 2602 | $method = 'POST'; |
2603 | 2603 | |
2604 | - $url = $this->addQueryString($url, $params, ['ignore_unavailable','allow_no_indices','ignore_throttled','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
2604 | + $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'ignore_throttled', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2605 | 2605 | $headers = [ |
2606 | 2606 | 'Accept' => 'application/json', |
2607 | 2607 | 'Content-Type' => 'application/json', |
@@ -2634,11 +2634,11 @@ discard block |
||
2634 | 2634 | */ |
2635 | 2635 | public function updateFilter(array $params = []) |
2636 | 2636 | { |
2637 | - $this->checkRequiredParameters(['filter_id','body'], $params); |
|
2638 | - $url = '/_ml/filters/' . $this->encode($params['filter_id']) . '/_update'; |
|
2637 | + $this->checkRequiredParameters(['filter_id', 'body'], $params); |
|
2638 | + $url = '/_ml/filters/'.$this->encode($params['filter_id']).'/_update'; |
|
2639 | 2639 | $method = 'POST'; |
2640 | 2640 | |
2641 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2641 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2642 | 2642 | $headers = [ |
2643 | 2643 | 'Accept' => 'application/json', |
2644 | 2644 | 'Content-Type' => 'application/json', |
@@ -2671,11 +2671,11 @@ discard block |
||
2671 | 2671 | */ |
2672 | 2672 | public function updateJob(array $params = []) |
2673 | 2673 | { |
2674 | - $this->checkRequiredParameters(['job_id','body'], $params); |
|
2675 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_update'; |
|
2674 | + $this->checkRequiredParameters(['job_id', 'body'], $params); |
|
2675 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_update'; |
|
2676 | 2676 | $method = 'POST'; |
2677 | 2677 | |
2678 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2678 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2679 | 2679 | $headers = [ |
2680 | 2680 | 'Accept' => 'application/json', |
2681 | 2681 | 'Content-Type' => 'application/json', |
@@ -2709,11 +2709,11 @@ discard block |
||
2709 | 2709 | */ |
2710 | 2710 | public function updateModelSnapshot(array $params = []) |
2711 | 2711 | { |
2712 | - $this->checkRequiredParameters(['job_id','snapshot_id','body'], $params); |
|
2713 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']) . '/_update'; |
|
2712 | + $this->checkRequiredParameters(['job_id', 'snapshot_id', 'body'], $params); |
|
2713 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']).'/_update'; |
|
2714 | 2714 | $method = 'POST'; |
2715 | 2715 | |
2716 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2716 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2717 | 2717 | $headers = [ |
2718 | 2718 | 'Accept' => 'application/json', |
2719 | 2719 | 'Content-Type' => 'application/json', |
@@ -2746,11 +2746,11 @@ discard block |
||
2746 | 2746 | */ |
2747 | 2747 | public function updateTrainedModelDeployment(array $params = []) |
2748 | 2748 | { |
2749 | - $this->checkRequiredParameters(['model_id','body'], $params); |
|
2750 | - $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/deployment/_update'; |
|
2749 | + $this->checkRequiredParameters(['model_id', 'body'], $params); |
|
2750 | + $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/deployment/_update'; |
|
2751 | 2751 | $method = 'POST'; |
2752 | 2752 | |
2753 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2753 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2754 | 2754 | $headers = [ |
2755 | 2755 | 'Accept' => 'application/json', |
2756 | 2756 | 'Content-Type' => 'application/json', |
@@ -2785,11 +2785,11 @@ discard block |
||
2785 | 2785 | */ |
2786 | 2786 | public function upgradeJobSnapshot(array $params = []) |
2787 | 2787 | { |
2788 | - $this->checkRequiredParameters(['job_id','snapshot_id'], $params); |
|
2789 | - $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']) . '/_upgrade'; |
|
2788 | + $this->checkRequiredParameters(['job_id', 'snapshot_id'], $params); |
|
2789 | + $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']).'/_upgrade'; |
|
2790 | 2790 | $method = 'POST'; |
2791 | 2791 | |
2792 | - $url = $this->addQueryString($url, $params, ['timeout','wait_for_completion','pretty','human','error_trace','source','filter_path']); |
|
2792 | + $url = $this->addQueryString($url, $params, ['timeout', 'wait_for_completion', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2793 | 2793 | $headers = [ |
2794 | 2794 | 'Accept' => 'application/json', |
2795 | 2795 | ]; |
@@ -2823,7 +2823,7 @@ discard block |
||
2823 | 2823 | $url = '/_ml/anomaly_detectors/_validate'; |
2824 | 2824 | $method = 'POST'; |
2825 | 2825 | |
2826 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2826 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2827 | 2827 | $headers = [ |
2828 | 2828 | 'Accept' => 'application/json', |
2829 | 2829 | 'Content-Type' => 'application/json', |
@@ -2858,7 +2858,7 @@ discard block |
||
2858 | 2858 | $url = '/_ml/anomaly_detectors/_validate/detector'; |
2859 | 2859 | $method = 'POST'; |
2860 | 2860 | |
2861 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
2861 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
2862 | 2862 | $headers = [ |
2863 | 2863 | 'Accept' => 'application/json', |
2864 | 2864 | 'Content-Type' => 'application/json', |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Ml extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Ml extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Clear the cached results from a trained model deployment |
33 | 32 | * |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $url = '/_sql/close'; |
55 | 55 | $method = 'POST'; |
56 | 56 | |
57 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
57 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
58 | 58 | $headers = [ |
59 | 59 | 'Accept' => 'application/json', |
60 | 60 | 'Content-Type' => 'application/json', |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | public function deleteAsync(array $params = []) |
88 | 88 | { |
89 | 89 | $this->checkRequiredParameters(['id'], $params); |
90 | - $url = '/_sql/async/delete/' . $this->encode($params['id']); |
|
90 | + $url = '/_sql/async/delete/'.$this->encode($params['id']); |
|
91 | 91 | $method = 'DELETE'; |
92 | 92 | |
93 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
93 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
94 | 94 | $headers = [ |
95 | 95 | 'Accept' => 'application/json', |
96 | 96 | ]; |
@@ -126,10 +126,10 @@ discard block |
||
126 | 126 | public function getAsync(array $params = []) |
127 | 127 | { |
128 | 128 | $this->checkRequiredParameters(['id'], $params); |
129 | - $url = '/_sql/async/' . $this->encode($params['id']); |
|
129 | + $url = '/_sql/async/'.$this->encode($params['id']); |
|
130 | 130 | $method = 'GET'; |
131 | 131 | |
132 | - $url = $this->addQueryString($url, $params, ['delimiter','format','keep_alive','wait_for_completion_timeout','pretty','human','error_trace','source','filter_path']); |
|
132 | + $url = $this->addQueryString($url, $params, ['delimiter', 'format', 'keep_alive', 'wait_for_completion_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
133 | 133 | $headers = [ |
134 | 134 | 'Accept' => 'application/json', |
135 | 135 | ]; |
@@ -161,10 +161,10 @@ discard block |
||
161 | 161 | public function getAsyncStatus(array $params = []) |
162 | 162 | { |
163 | 163 | $this->checkRequiredParameters(['id'], $params); |
164 | - $url = '/_sql/async/status/' . $this->encode($params['id']); |
|
164 | + $url = '/_sql/async/status/'.$this->encode($params['id']); |
|
165 | 165 | $method = 'GET'; |
166 | 166 | |
167 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
167 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
168 | 168 | $headers = [ |
169 | 169 | 'Accept' => 'application/json', |
170 | 170 | ]; |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | $url = '/_sql'; |
200 | 200 | $method = empty($params['body']) ? 'GET' : 'POST'; |
201 | 201 | |
202 | - $url = $this->addQueryString($url, $params, ['format','pretty','human','error_trace','source','filter_path']); |
|
202 | + $url = $this->addQueryString($url, $params, ['format', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
203 | 203 | $headers = [ |
204 | 204 | 'Accept' => 'application/json', |
205 | 205 | 'Content-Type' => 'application/json', |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | $url = '/_sql/translate'; |
235 | 235 | $method = empty($params['body']) ? 'GET' : 'POST'; |
236 | 236 | |
237 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
237 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
238 | 238 | $headers = [ |
239 | 239 | 'Accept' => 'application/json', |
240 | 240 | 'Content-Type' => 'application/json', |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Sql extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Sql extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Clears the SQL cursor |
33 | 32 | * |