@@ -69,7 +69,7 @@ public function aliases(array $params = [])
69
69
$ headers = array (
70
70
'Accept ' => 'text/plain,application/json ' ,
71
71
);
72
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
72
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
73
73
}
74
74
75
75
@@ -115,7 +115,7 @@ public function allocation(array $params = [])
115
115
$ headers = array (
116
116
'Accept ' => 'text/plain,application/json ' ,
117
117
);
118
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
118
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
119
119
}
120
120
121
121
@@ -158,7 +158,7 @@ public function count(array $params = [])
158
158
$ headers = array (
159
159
'Accept ' => 'text/plain,application/json ' ,
160
160
);
161
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
161
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
162
162
}
163
163
164
164
@@ -202,7 +202,7 @@ public function fielddata(array $params = [])
202
202
$ headers = array (
203
203
'Accept ' => 'text/plain,application/json ' ,
204
204
);
205
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
205
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
206
206
}
207
207
208
208
@@ -242,7 +242,7 @@ public function health(array $params = [])
242
242
$ headers = array (
243
243
'Accept ' => 'text/plain,application/json ' ,
244
244
);
245
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
245
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
246
246
}
247
247
248
248
@@ -277,7 +277,7 @@ public function help(array $params = [])
277
277
$ headers = array (
278
278
'Accept ' => 'text/plain ' ,
279
279
);
280
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
280
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
281
281
}
282
282
283
283
@@ -327,7 +327,7 @@ public function indices(array $params = [])
327
327
$ headers = array (
328
328
'Accept ' => 'text/plain,application/json ' ,
329
329
);
330
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
330
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
331
331
}
332
332
333
333
@@ -367,7 +367,7 @@ public function master(array $params = [])
367
367
$ headers = array (
368
368
'Accept ' => 'text/plain,application/json ' ,
369
369
);
370
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
370
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
371
371
}
372
372
373
373
@@ -413,7 +413,7 @@ public function mlDataFrameAnalytics(array $params = [])
413
413
$ headers = array (
414
414
'Accept ' => 'text/plain,application/json ' ,
415
415
);
416
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
416
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
417
417
}
418
418
419
419
@@ -458,7 +458,7 @@ public function mlDatafeeds(array $params = [])
458
458
$ headers = array (
459
459
'Accept ' => 'text/plain,application/json ' ,
460
460
);
461
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
461
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
462
462
}
463
463
464
464
@@ -504,7 +504,7 @@ public function mlJobs(array $params = [])
504
504
$ headers = array (
505
505
'Accept ' => 'text/plain,application/json ' ,
506
506
);
507
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
507
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
508
508
}
509
509
510
510
@@ -552,7 +552,7 @@ public function mlTrainedModels(array $params = [])
552
552
$ headers = array (
553
553
'Accept ' => 'text/plain,application/json ' ,
554
554
);
555
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
555
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
556
556
}
557
557
558
558
@@ -592,7 +592,7 @@ public function nodeattrs(array $params = [])
592
592
$ headers = array (
593
593
'Accept ' => 'text/plain,application/json ' ,
594
594
);
595
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
595
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
596
596
}
597
597
598
598
@@ -635,7 +635,7 @@ public function nodes(array $params = [])
635
635
$ headers = array (
636
636
'Accept ' => 'text/plain,application/json ' ,
637
637
);
638
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
638
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
639
639
}
640
640
641
641
@@ -676,7 +676,7 @@ public function pendingTasks(array $params = [])
676
676
$ headers = array (
677
677
'Accept ' => 'text/plain,application/json ' ,
678
678
);
679
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
679
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
680
680
}
681
681
682
682
@@ -717,7 +717,7 @@ public function plugins(array $params = [])
717
717
$ headers = array (
718
718
'Accept ' => 'text/plain,application/json ' ,
719
719
);
720
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
720
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
721
721
}
722
722
723
723
@@ -764,7 +764,7 @@ public function recovery(array $params = [])
764
764
$ headers = array (
765
765
'Accept ' => 'text/plain,application/json ' ,
766
766
);
767
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
767
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
768
768
}
769
769
770
770
@@ -804,7 +804,7 @@ public function repositories(array $params = [])
804
804
$ headers = array (
805
805
'Accept ' => 'text/plain,application/json ' ,
806
806
);
807
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
807
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
808
808
}
809
809
810
810
@@ -848,7 +848,7 @@ public function segments(array $params = [])
848
848
$ headers = array (
849
849
'Accept ' => 'text/plain,application/json ' ,
850
850
);
851
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
851
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
852
852
}
853
853
854
854
@@ -894,7 +894,7 @@ public function shards(array $params = [])
894
894
$ headers = array (
895
895
'Accept ' => 'text/plain,application/json ' ,
896
896
);
897
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
897
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
898
898
}
899
899
900
900
@@ -940,7 +940,7 @@ public function snapshots(array $params = [])
940
940
$ headers = array (
941
941
'Accept ' => 'text/plain,application/json ' ,
942
942
);
943
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
943
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
944
944
}
945
945
946
946
@@ -984,7 +984,7 @@ public function tasks(array $params = [])
984
984
$ headers = array (
985
985
'Accept ' => 'text/plain,application/json ' ,
986
986
);
987
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
987
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
988
988
}
989
989
990
990
@@ -1029,7 +1029,7 @@ public function templates(array $params = [])
1029
1029
$ headers = array (
1030
1030
'Accept ' => 'text/plain,application/json ' ,
1031
1031
);
1032
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
1032
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
1033
1033
}
1034
1034
1035
1035
@@ -1076,7 +1076,7 @@ public function threadPool(array $params = [])
1076
1076
$ headers = array (
1077
1077
'Accept ' => 'text/plain,application/json ' ,
1078
1078
);
1079
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
1079
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
1080
1080
}
1081
1081
1082
1082
@@ -1123,6 +1123,6 @@ public function transforms(array $params = [])
1123
1123
$ headers = array (
1124
1124
'Accept ' => 'text/plain,application/json ' ,
1125
1125
);
1126
- return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? [] ));
1126
+ return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
1127
1127
}
1128
1128
}
0 commit comments