Skip to content

Commit e7d448d

Browse files
committed
Updated endpoints with NoNodeAvailableException
1 parent 562b866 commit e7d448d

35 files changed

+396
-397
lines changed

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
parameters:
22
ignoreErrors:
33
- '#PHPDoc tag @param has invalid value#'
4-
- '#PHPDoc tag @throws with type#'

src/Endpoints/AsyncSearch.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Elastic\Elasticsearch\Exception\MissingParameterException;
2121
use Elastic\Elasticsearch\Exception\ServerResponseException;
2222
use Elastic\Elasticsearch\Response\Elasticsearch;
23-
use Elastic\Transport\Exception\NoAliveException;
23+
use Elastic\Transport\Exception\NoNodeAvailableException;
2424
use Http\Promise\Promise;
2525

2626
/**
@@ -43,7 +43,7 @@ class AsyncSearch extends AbstractEndpoint
4343
* } $params
4444
*
4545
* @throws MissingParameterException if a required parameter is missing
46-
* @throws NoAliveException if all the hosts are offline
46+
* @throws NoNodeAvailableException if all the hosts are offline
4747
* @throws ClientResponseException if the status code of response is 4xx
4848
* @throws ServerResponseException if the status code of response is 5xx
4949
*
@@ -81,7 +81,7 @@ public function delete(array $params = [])
8181
* } $params
8282
*
8383
* @throws MissingParameterException if a required parameter is missing
84-
* @throws NoAliveException if all the hosts are offline
84+
* @throws NoNodeAvailableException if all the hosts are offline
8585
* @throws ClientResponseException if the status code of response is 4xx
8686
* @throws ServerResponseException if the status code of response is 5xx
8787
*
@@ -116,7 +116,7 @@ public function get(array $params = [])
116116
* } $params
117117
*
118118
* @throws MissingParameterException if a required parameter is missing
119-
* @throws NoAliveException if all the hosts are offline
119+
* @throws NoNodeAvailableException if all the hosts are offline
120120
* @throws ClientResponseException if the status code of response is 4xx
121121
* @throws ServerResponseException if the status code of response is 5xx
122122
*
@@ -193,7 +193,7 @@ public function status(array $params = [])
193193
* } $params
194194
*
195195
* @throws MissingParameterException if a required parameter is missing
196-
* @throws NoAliveException if all the hosts are offline
196+
* @throws NoNodeAvailableException if all the hosts are offline
197197
* @throws ClientResponseException if the status code of response is 4xx
198198
* @throws ServerResponseException if the status code of response is 5xx
199199
*

src/Endpoints/Autoscaling.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Elastic\Elasticsearch\Exception\MissingParameterException;
2121
use Elastic\Elasticsearch\Exception\ServerResponseException;
2222
use Elastic\Elasticsearch\Response\Elasticsearch;
23-
use Elastic\Transport\Exception\NoAliveException;
23+
use Elastic\Transport\Exception\NoNodeAvailableException;
2424
use Http\Promise\Promise;
2525

2626
/**
@@ -43,7 +43,7 @@ class Autoscaling extends AbstractEndpoint
4343
* } $params
4444
*
4545
* @throws MissingParameterException if a required parameter is missing
46-
* @throws NoAliveException if all the hosts are offline
46+
* @throws NoNodeAvailableException if all the hosts are offline
4747
* @throws ClientResponseException if the status code of response is 4xx
4848
* @throws ServerResponseException if the status code of response is 5xx
4949
*
@@ -96,7 +96,7 @@ public function getAutoscalingCapacity(array $params = [])
9696
* } $params
9797
*
9898
* @throws MissingParameterException if a required parameter is missing
99-
* @throws NoAliveException if all the hosts are offline
99+
* @throws NoNodeAvailableException if all the hosts are offline
100100
* @throws ClientResponseException if the status code of response is 4xx
101101
* @throws ServerResponseException if the status code of response is 5xx
102102
*
@@ -132,7 +132,7 @@ public function getAutoscalingPolicy(array $params = [])
132132
* } $params
133133
*
134134
* @throws MissingParameterException if a required parameter is missing
135-
* @throws NoAliveException if all the hosts are offline
135+
* @throws NoNodeAvailableException if all the hosts are offline
136136
* @throws ClientResponseException if the status code of response is 4xx
137137
* @throws ServerResponseException if the status code of response is 5xx
138138
*

src/Endpoints/Cat.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Elastic\Elasticsearch\Exception\MissingParameterException;
2121
use Elastic\Elasticsearch\Exception\ServerResponseException;
2222
use Elastic\Elasticsearch\Response\Elasticsearch;
23-
use Elastic\Transport\Exception\NoAliveException;
23+
use Elastic\Transport\Exception\NoNodeAvailableException;
2424
use Http\Promise\Promise;
2525

2626
/**
@@ -50,7 +50,7 @@ class Cat extends AbstractEndpoint
5050
* } $params
5151
*
5252
* @throws MissingParameterException if a required parameter is missing
53-
* @throws NoAliveException if all the hosts are offline
53+
* @throws NoNodeAvailableException if all the hosts are offline
5454
* @throws ClientResponseException if the status code of response is 4xx
5555
* @throws ServerResponseException if the status code of response is 5xx
5656
*
@@ -96,7 +96,7 @@ public function aliases(array $params = [])
9696
* } $params
9797
*
9898
* @throws MissingParameterException if a required parameter is missing
99-
* @throws NoAliveException if all the hosts are offline
99+
* @throws NoNodeAvailableException if all the hosts are offline
100100
* @throws ClientResponseException if the status code of response is 4xx
101101
* @throws ServerResponseException if the status code of response is 5xx
102102
*
@@ -139,7 +139,7 @@ public function allocation(array $params = [])
139139
* } $params
140140
*
141141
* @throws MissingParameterException if a required parameter is missing
142-
* @throws NoAliveException if all the hosts are offline
142+
* @throws NoNodeAvailableException if all the hosts are offline
143143
* @throws ClientResponseException if the status code of response is 4xx
144144
* @throws ServerResponseException if the status code of response is 5xx
145145
*
@@ -183,7 +183,7 @@ public function count(array $params = [])
183183
* } $params
184184
*
185185
* @throws MissingParameterException if a required parameter is missing
186-
* @throws NoAliveException if all the hosts are offline
186+
* @throws NoNodeAvailableException if all the hosts are offline
187187
* @throws ClientResponseException if the status code of response is 4xx
188188
* @throws ServerResponseException if the status code of response is 5xx
189189
*
@@ -227,7 +227,7 @@ public function fielddata(array $params = [])
227227
* } $params
228228
*
229229
* @throws MissingParameterException if a required parameter is missing
230-
* @throws NoAliveException if all the hosts are offline
230+
* @throws NoNodeAvailableException if all the hosts are offline
231231
* @throws ClientResponseException if the status code of response is 4xx
232232
* @throws ServerResponseException if the status code of response is 5xx
233233
*
@@ -262,7 +262,7 @@ public function health(array $params = [])
262262
* } $params
263263
*
264264
* @throws MissingParameterException if a required parameter is missing
265-
* @throws NoAliveException if all the hosts are offline
265+
* @throws NoNodeAvailableException if all the hosts are offline
266266
* @throws ClientResponseException if the status code of response is 4xx
267267
* @throws ServerResponseException if the status code of response is 5xx
268268
*
@@ -308,7 +308,7 @@ public function help(array $params = [])
308308
* } $params
309309
*
310310
* @throws MissingParameterException if a required parameter is missing
311-
* @throws NoAliveException if all the hosts are offline
311+
* @throws NoNodeAvailableException if all the hosts are offline
312312
* @throws ClientResponseException if the status code of response is 4xx
313313
* @throws ServerResponseException if the status code of response is 5xx
314314
*
@@ -352,7 +352,7 @@ public function indices(array $params = [])
352352
* } $params
353353
*
354354
* @throws MissingParameterException if a required parameter is missing
355-
* @throws NoAliveException if all the hosts are offline
355+
* @throws NoNodeAvailableException if all the hosts are offline
356356
* @throws ClientResponseException if the status code of response is 4xx
357357
* @throws ServerResponseException if the status code of response is 5xx
358358
*
@@ -394,7 +394,7 @@ public function master(array $params = [])
394394
* } $params
395395
*
396396
* @throws MissingParameterException if a required parameter is missing
397-
* @throws NoAliveException if all the hosts are offline
397+
* @throws NoNodeAvailableException if all the hosts are offline
398398
* @throws ClientResponseException if the status code of response is 4xx
399399
* @throws ServerResponseException if the status code of response is 5xx
400400
*
@@ -439,7 +439,7 @@ public function mlDataFrameAnalytics(array $params = [])
439439
* } $params
440440
*
441441
* @throws MissingParameterException if a required parameter is missing
442-
* @throws NoAliveException if all the hosts are offline
442+
* @throws NoNodeAvailableException if all the hosts are offline
443443
* @throws ClientResponseException if the status code of response is 4xx
444444
* @throws ServerResponseException if the status code of response is 5xx
445445
*
@@ -485,7 +485,7 @@ public function mlDatafeeds(array $params = [])
485485
* } $params
486486
*
487487
* @throws MissingParameterException if a required parameter is missing
488-
* @throws NoAliveException if all the hosts are offline
488+
* @throws NoNodeAvailableException if all the hosts are offline
489489
* @throws ClientResponseException if the status code of response is 4xx
490490
* @throws ServerResponseException if the status code of response is 5xx
491491
*
@@ -533,7 +533,7 @@ public function mlJobs(array $params = [])
533533
* } $params
534534
*
535535
* @throws MissingParameterException if a required parameter is missing
536-
* @throws NoAliveException if all the hosts are offline
536+
* @throws NoNodeAvailableException if all the hosts are offline
537537
* @throws ClientResponseException if the status code of response is 4xx
538538
* @throws ServerResponseException if the status code of response is 5xx
539539
*
@@ -577,7 +577,7 @@ public function mlTrainedModels(array $params = [])
577577
* } $params
578578
*
579579
* @throws MissingParameterException if a required parameter is missing
580-
* @throws NoAliveException if all the hosts are offline
580+
* @throws NoNodeAvailableException if all the hosts are offline
581581
* @throws ClientResponseException if the status code of response is 4xx
582582
* @throws ServerResponseException if the status code of response is 5xx
583583
*
@@ -620,7 +620,7 @@ public function nodeattrs(array $params = [])
620620
* } $params
621621
*
622622
* @throws MissingParameterException if a required parameter is missing
623-
* @throws NoAliveException if all the hosts are offline
623+
* @throws NoNodeAvailableException if all the hosts are offline
624624
* @throws ClientResponseException if the status code of response is 4xx
625625
* @throws ServerResponseException if the status code of response is 5xx
626626
*
@@ -661,7 +661,7 @@ public function nodes(array $params = [])
661661
* } $params
662662
*
663663
* @throws MissingParameterException if a required parameter is missing
664-
* @throws NoAliveException if all the hosts are offline
664+
* @throws NoNodeAvailableException if all the hosts are offline
665665
* @throws ClientResponseException if the status code of response is 4xx
666666
* @throws ServerResponseException if the status code of response is 5xx
667667
*
@@ -702,7 +702,7 @@ public function pendingTasks(array $params = [])
702702
* } $params
703703
*
704704
* @throws MissingParameterException if a required parameter is missing
705-
* @throws NoAliveException if all the hosts are offline
705+
* @throws NoNodeAvailableException if all the hosts are offline
706706
* @throws ClientResponseException if the status code of response is 4xx
707707
* @throws ServerResponseException if the status code of response is 5xx
708708
*
@@ -745,7 +745,7 @@ public function plugins(array $params = [])
745745
* } $params
746746
*
747747
* @throws MissingParameterException if a required parameter is missing
748-
* @throws NoAliveException if all the hosts are offline
748+
* @throws NoNodeAvailableException if all the hosts are offline
749749
* @throws ClientResponseException if the status code of response is 4xx
750750
* @throws ServerResponseException if the status code of response is 5xx
751751
*
@@ -789,7 +789,7 @@ public function recovery(array $params = [])
789789
* } $params
790790
*
791791
* @throws MissingParameterException if a required parameter is missing
792-
* @throws NoAliveException if all the hosts are offline
792+
* @throws NoNodeAvailableException if all the hosts are offline
793793
* @throws ClientResponseException if the status code of response is 4xx
794794
* @throws ServerResponseException if the status code of response is 5xx
795795
*
@@ -829,7 +829,7 @@ public function repositories(array $params = [])
829829
* } $params
830830
*
831831
* @throws MissingParameterException if a required parameter is missing
832-
* @throws NoAliveException if all the hosts are offline
832+
* @throws NoNodeAvailableException if all the hosts are offline
833833
* @throws ClientResponseException if the status code of response is 4xx
834834
* @throws ServerResponseException if the status code of response is 5xx
835835
*
@@ -875,7 +875,7 @@ public function segments(array $params = [])
875875
* } $params
876876
*
877877
* @throws MissingParameterException if a required parameter is missing
878-
* @throws NoAliveException if all the hosts are offline
878+
* @throws NoNodeAvailableException if all the hosts are offline
879879
* @throws ClientResponseException if the status code of response is 4xx
880880
* @throws ServerResponseException if the status code of response is 5xx
881881
*
@@ -921,7 +921,7 @@ public function shards(array $params = [])
921921
* } $params
922922
*
923923
* @throws MissingParameterException if a required parameter is missing
924-
* @throws NoAliveException if all the hosts are offline
924+
* @throws NoNodeAvailableException if all the hosts are offline
925925
* @throws ClientResponseException if the status code of response is 4xx
926926
* @throws ServerResponseException if the status code of response is 5xx
927927
*
@@ -969,7 +969,7 @@ public function snapshots(array $params = [])
969969
* } $params
970970
*
971971
* @throws MissingParameterException if a required parameter is missing
972-
* @throws NoAliveException if all the hosts are offline
972+
* @throws NoNodeAvailableException if all the hosts are offline
973973
* @throws ClientResponseException if the status code of response is 4xx
974974
* @throws ServerResponseException if the status code of response is 5xx
975975
*
@@ -1010,7 +1010,7 @@ public function tasks(array $params = [])
10101010
* } $params
10111011
*
10121012
* @throws MissingParameterException if a required parameter is missing
1013-
* @throws NoAliveException if all the hosts are offline
1013+
* @throws NoNodeAvailableException if all the hosts are offline
10141014
* @throws ClientResponseException if the status code of response is 4xx
10151015
* @throws ServerResponseException if the status code of response is 5xx
10161016
*
@@ -1057,7 +1057,7 @@ public function templates(array $params = [])
10571057
* } $params
10581058
*
10591059
* @throws MissingParameterException if a required parameter is missing
1060-
* @throws NoAliveException if all the hosts are offline
1060+
* @throws NoNodeAvailableException if all the hosts are offline
10611061
* @throws ClientResponseException if the status code of response is 4xx
10621062
* @throws ServerResponseException if the status code of response is 5xx
10631063
*
@@ -1104,7 +1104,7 @@ public function threadPool(array $params = [])
11041104
* } $params
11051105
*
11061106
* @throws MissingParameterException if a required parameter is missing
1107-
* @throws NoAliveException if all the hosts are offline
1107+
* @throws NoNodeAvailableException if all the hosts are offline
11081108
* @throws ClientResponseException if the status code of response is 4xx
11091109
* @throws ServerResponseException if the status code of response is 5xx
11101110
*

0 commit comments

Comments
 (0)