@@ -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 | * |
@@ -53,10 +53,10 @@ discard block |
||
53 | 53 | public function delete(array $params = []) |
54 | 54 | { |
55 | 55 | $this->checkRequiredParameters(['name'], $params); |
56 | - $url = '/_application/search_application/' . $this->encode($params['name']); |
|
56 | + $url = '/_application/search_application/'.$this->encode($params['name']); |
|
57 | 57 | $method = 'DELETE'; |
58 | 58 | |
59 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
59 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
60 | 60 | $headers = [ |
61 | 61 | 'Accept' => 'application/json', |
62 | 62 | ]; |
@@ -89,10 +89,10 @@ discard block |
||
89 | 89 | public function deleteBehavioralAnalytics(array $params = []) |
90 | 90 | { |
91 | 91 | $this->checkRequiredParameters(['name'], $params); |
92 | - $url = '/_application/analytics/' . $this->encode($params['name']); |
|
92 | + $url = '/_application/analytics/'.$this->encode($params['name']); |
|
93 | 93 | $method = 'DELETE'; |
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 | ]; |
@@ -125,10 +125,10 @@ discard block |
||
125 | 125 | public function get(array $params = []) |
126 | 126 | { |
127 | 127 | $this->checkRequiredParameters(['name'], $params); |
128 | - $url = '/_application/search_application/' . $this->encode($params['name']); |
|
128 | + $url = '/_application/search_application/'.$this->encode($params['name']); |
|
129 | 129 | $method = 'GET'; |
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 | ]; |
@@ -160,13 +160,13 @@ discard block |
||
160 | 160 | public function getBehavioralAnalytics(array $params = []) |
161 | 161 | { |
162 | 162 | if (isset($params['name'])) { |
163 | - $url = '/_application/analytics/' . $this->encode($params['name']); |
|
163 | + $url = '/_application/analytics/'.$this->encode($params['name']); |
|
164 | 164 | $method = 'GET'; |
165 | 165 | } else { |
166 | 166 | $url = '/_application/analytics'; |
167 | 167 | $method = 'GET'; |
168 | 168 | } |
169 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
169 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
170 | 170 | $headers = [ |
171 | 171 | 'Accept' => 'application/json', |
172 | 172 | ]; |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | $url = '/_application/search_application'; |
203 | 203 | $method = 'GET'; |
204 | 204 | |
205 | - $url = $this->addQueryString($url, $params, ['q','from','size','pretty','human','error_trace','source','filter_path']); |
|
205 | + $url = $this->addQueryString($url, $params, ['q', 'from', 'size', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
206 | 206 | $headers = [ |
207 | 207 | 'Accept' => 'application/json', |
208 | 208 | ]; |
@@ -237,11 +237,11 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function postBehavioralAnalyticsEvent(array $params = []) |
239 | 239 | { |
240 | - $this->checkRequiredParameters(['collection_name','event_type','body'], $params); |
|
241 | - $url = '/_application/analytics/' . $this->encode($params['collection_name']) . '/event/' . $this->encode($params['event_type']); |
|
240 | + $this->checkRequiredParameters(['collection_name', 'event_type', 'body'], $params); |
|
241 | + $url = '/_application/analytics/'.$this->encode($params['collection_name']).'/event/'.$this->encode($params['event_type']); |
|
242 | 242 | $method = 'POST'; |
243 | 243 | |
244 | - $url = $this->addQueryString($url, $params, ['debug','pretty','human','error_trace','source','filter_path']); |
|
244 | + $url = $this->addQueryString($url, $params, ['debug', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
245 | 245 | $headers = [ |
246 | 246 | 'Accept' => 'application/json', |
247 | 247 | 'Content-Type' => 'application/json', |
@@ -276,11 +276,11 @@ discard block |
||
276 | 276 | */ |
277 | 277 | public function put(array $params = []) |
278 | 278 | { |
279 | - $this->checkRequiredParameters(['name','body'], $params); |
|
280 | - $url = '/_application/search_application/' . $this->encode($params['name']); |
|
279 | + $this->checkRequiredParameters(['name', 'body'], $params); |
|
280 | + $url = '/_application/search_application/'.$this->encode($params['name']); |
|
281 | 281 | $method = 'PUT'; |
282 | 282 | |
283 | - $url = $this->addQueryString($url, $params, ['create','pretty','human','error_trace','source','filter_path']); |
|
283 | + $url = $this->addQueryString($url, $params, ['create', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
284 | 284 | $headers = [ |
285 | 285 | 'Accept' => 'application/json', |
286 | 286 | 'Content-Type' => 'application/json', |
@@ -314,10 +314,10 @@ discard block |
||
314 | 314 | public function putBehavioralAnalytics(array $params = []) |
315 | 315 | { |
316 | 316 | $this->checkRequiredParameters(['name'], $params); |
317 | - $url = '/_application/analytics/' . $this->encode($params['name']); |
|
317 | + $url = '/_application/analytics/'.$this->encode($params['name']); |
|
318 | 318 | $method = 'PUT'; |
319 | 319 | |
320 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
320 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
321 | 321 | $headers = [ |
322 | 322 | 'Accept' => 'application/json', |
323 | 323 | ]; |
@@ -351,10 +351,10 @@ discard block |
||
351 | 351 | public function renderQuery(array $params = []) |
352 | 352 | { |
353 | 353 | $this->checkRequiredParameters(['name'], $params); |
354 | - $url = '/_application/search_application/' . $this->encode($params['name']) . '/_render_query'; |
|
354 | + $url = '/_application/search_application/'.$this->encode($params['name']).'/_render_query'; |
|
355 | 355 | $method = 'POST'; |
356 | 356 | |
357 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
357 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
358 | 358 | $headers = [ |
359 | 359 | 'Accept' => 'application/json', |
360 | 360 | 'Content-Type' => 'application/json', |
@@ -389,10 +389,10 @@ discard block |
||
389 | 389 | public function search(array $params = []) |
390 | 390 | { |
391 | 391 | $this->checkRequiredParameters(['name'], $params); |
392 | - $url = '/_application/search_application/' . $this->encode($params['name']) . '/_search'; |
|
392 | + $url = '/_application/search_application/'.$this->encode($params['name']).'/_search'; |
|
393 | 393 | $method = empty($params['body']) ? 'GET' : 'POST'; |
394 | 394 | |
395 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
395 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
396 | 396 | $headers = [ |
397 | 397 | 'Accept' => 'application/json', |
398 | 398 | '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 SearchApplication extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class SearchApplication extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Deletes a search application. |
33 | 32 | * |
@@ -55,10 +55,10 @@ discard block |
||
55 | 55 | public function deleteDanglingIndex(array $params = []) |
56 | 56 | { |
57 | 57 | $this->checkRequiredParameters(['index_uuid'], $params); |
58 | - $url = '/_dangling/' . $this->encode($params['index_uuid']); |
|
58 | + $url = '/_dangling/'.$this->encode($params['index_uuid']); |
|
59 | 59 | $method = 'DELETE'; |
60 | 60 | |
61 | - $url = $this->addQueryString($url, $params, ['accept_data_loss','timeout','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
61 | + $url = $this->addQueryString($url, $params, ['accept_data_loss', 'timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
62 | 62 | $headers = [ |
63 | 63 | 'Accept' => 'application/json', |
64 | 64 | ]; |
@@ -93,10 +93,10 @@ discard block |
||
93 | 93 | public function importDanglingIndex(array $params = []) |
94 | 94 | { |
95 | 95 | $this->checkRequiredParameters(['index_uuid'], $params); |
96 | - $url = '/_dangling/' . $this->encode($params['index_uuid']); |
|
96 | + $url = '/_dangling/'.$this->encode($params['index_uuid']); |
|
97 | 97 | $method = 'POST'; |
98 | 98 | |
99 | - $url = $this->addQueryString($url, $params, ['accept_data_loss','timeout','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
99 | + $url = $this->addQueryString($url, $params, ['accept_data_loss', 'timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
100 | 100 | $headers = [ |
101 | 101 | 'Accept' => 'application/json', |
102 | 102 | ]; |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $url = '/_dangling'; |
129 | 129 | $method = 'GET'; |
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 | ]; |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class DanglingIndices extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class DanglingIndices extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Deletes the specified dangling index |
33 | 32 | * |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | public function deletePolicy(array $params = []) |
53 | 53 | { |
54 | 54 | $this->checkRequiredParameters(['name'], $params); |
55 | - $url = '/_enrich/policy/' . $this->encode($params['name']); |
|
55 | + $url = '/_enrich/policy/'.$this->encode($params['name']); |
|
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 | ]; |
@@ -88,10 +88,10 @@ discard block |
||
88 | 88 | public function executePolicy(array $params = []) |
89 | 89 | { |
90 | 90 | $this->checkRequiredParameters(['name'], $params); |
91 | - $url = '/_enrich/policy/' . $this->encode($params['name']) . '/_execute'; |
|
91 | + $url = '/_enrich/policy/'.$this->encode($params['name']).'/_execute'; |
|
92 | 92 | $method = 'PUT'; |
93 | 93 | |
94 | - $url = $this->addQueryString($url, $params, ['wait_for_completion','pretty','human','error_trace','source','filter_path']); |
|
94 | + $url = $this->addQueryString($url, $params, ['wait_for_completion', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
95 | 95 | $headers = [ |
96 | 96 | 'Accept' => 'application/json', |
97 | 97 | ]; |
@@ -122,13 +122,13 @@ discard block |
||
122 | 122 | public function getPolicy(array $params = []) |
123 | 123 | { |
124 | 124 | if (isset($params['name'])) { |
125 | - $url = '/_enrich/policy/' . $this->encode($params['name']); |
|
125 | + $url = '/_enrich/policy/'.$this->encode($params['name']); |
|
126 | 126 | $method = 'GET'; |
127 | 127 | } else { |
128 | 128 | $url = '/_enrich/policy'; |
129 | 129 | $method = 'GET'; |
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 | ]; |
@@ -160,11 +160,11 @@ discard block |
||
160 | 160 | */ |
161 | 161 | public function putPolicy(array $params = []) |
162 | 162 | { |
163 | - $this->checkRequiredParameters(['name','body'], $params); |
|
164 | - $url = '/_enrich/policy/' . $this->encode($params['name']); |
|
163 | + $this->checkRequiredParameters(['name', 'body'], $params); |
|
164 | + $url = '/_enrich/policy/'.$this->encode($params['name']); |
|
165 | 165 | $method = 'PUT'; |
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 | 'Content-Type' => 'application/json', |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $url = '/_enrich/_stats'; |
198 | 198 | $method = 'GET'; |
199 | 199 | |
200 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
200 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
201 | 201 | $headers = [ |
202 | 202 | 'Accept' => 'application/json', |
203 | 203 | ]; |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Enrich extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Enrich extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Deletes an existing enrich policy and its enrich index. |
33 | 32 | * |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $url = '/_query/async'; |
59 | 59 | $method = 'POST'; |
60 | 60 | |
61 | - $url = $this->addQueryString($url, $params, ['format','delimiter','drop_null_columns','pretty','human','error_trace','source','filter_path']); |
|
61 | + $url = $this->addQueryString($url, $params, ['format', 'delimiter', 'drop_null_columns', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
62 | 62 | $headers = [ |
63 | 63 | 'Accept' => 'application/json', |
64 | 64 | 'Content-Type' => 'application/json', |
@@ -94,10 +94,10 @@ discard block |
||
94 | 94 | public function asyncQueryGet(array $params = []) |
95 | 95 | { |
96 | 96 | $this->checkRequiredParameters(['id'], $params); |
97 | - $url = '/_query/async/' . $this->encode($params['id']); |
|
97 | + $url = '/_query/async/'.$this->encode($params['id']); |
|
98 | 98 | $method = 'GET'; |
99 | 99 | |
100 | - $url = $this->addQueryString($url, $params, ['wait_for_completion_timeout','keep_alive','drop_null_columns','pretty','human','error_trace','source','filter_path']); |
|
100 | + $url = $this->addQueryString($url, $params, ['wait_for_completion_timeout', 'keep_alive', 'drop_null_columns', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
101 | 101 | $headers = [ |
102 | 102 | 'Accept' => 'application/json', |
103 | 103 | ]; |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | $url = '/_query'; |
136 | 136 | $method = 'POST'; |
137 | 137 | |
138 | - $url = $this->addQueryString($url, $params, ['format','delimiter','drop_null_columns','pretty','human','error_trace','source','filter_path']); |
|
138 | + $url = $this->addQueryString($url, $params, ['format', 'delimiter', 'drop_null_columns', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
139 | 139 | $headers = [ |
140 | 140 | 'Accept' => 'application/json', |
141 | 141 | '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 Esql extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Esql extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Executes an ESQL request asynchronously |
33 | 32 | * |
@@ -54,10 +54,10 @@ discard block |
||
54 | 54 | public function deletePipeline(array $params = []) |
55 | 55 | { |
56 | 56 | $this->checkRequiredParameters(['id'], $params); |
57 | - $url = '/_ingest/pipeline/' . $this->encode($params['id']); |
|
57 | + $url = '/_ingest/pipeline/'.$this->encode($params['id']); |
|
58 | 58 | $method = 'DELETE'; |
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 | ]; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $url = '/_ingest/geoip/stats'; |
90 | 90 | $method = 'GET'; |
91 | 91 | |
92 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
92 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
93 | 93 | $headers = [ |
94 | 94 | 'Accept' => 'application/json', |
95 | 95 | ]; |
@@ -122,13 +122,13 @@ discard block |
||
122 | 122 | public function getPipeline(array $params = []) |
123 | 123 | { |
124 | 124 | if (isset($params['id'])) { |
125 | - $url = '/_ingest/pipeline/' . $this->encode($params['id']); |
|
125 | + $url = '/_ingest/pipeline/'.$this->encode($params['id']); |
|
126 | 126 | $method = 'GET'; |
127 | 127 | } else { |
128 | 128 | $url = '/_ingest/pipeline'; |
129 | 129 | $method = 'GET'; |
130 | 130 | } |
131 | - $url = $this->addQueryString($url, $params, ['summary','master_timeout','pretty','human','error_trace','source','filter_path']); |
|
131 | + $url = $this->addQueryString($url, $params, ['summary', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
132 | 132 | $headers = [ |
133 | 133 | 'Accept' => 'application/json', |
134 | 134 | ]; |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $url = '/_ingest/processor/grok'; |
161 | 161 | $method = 'GET'; |
162 | 162 | |
163 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
163 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
164 | 164 | $headers = [ |
165 | 165 | 'Accept' => 'application/json', |
166 | 166 | ]; |
@@ -195,11 +195,11 @@ discard block |
||
195 | 195 | */ |
196 | 196 | public function putPipeline(array $params = []) |
197 | 197 | { |
198 | - $this->checkRequiredParameters(['id','body'], $params); |
|
199 | - $url = '/_ingest/pipeline/' . $this->encode($params['id']); |
|
198 | + $this->checkRequiredParameters(['id', 'body'], $params); |
|
199 | + $url = '/_ingest/pipeline/'.$this->encode($params['id']); |
|
200 | 200 | $method = 'PUT'; |
201 | 201 | |
202 | - $url = $this->addQueryString($url, $params, ['if_version','master_timeout','timeout','pretty','human','error_trace','source','filter_path']); |
|
202 | + $url = $this->addQueryString($url, $params, ['if_version', 'master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
203 | 203 | $headers = [ |
204 | 204 | 'Accept' => 'application/json', |
205 | 205 | 'Content-Type' => 'application/json', |
@@ -234,13 +234,13 @@ discard block |
||
234 | 234 | { |
235 | 235 | $this->checkRequiredParameters(['body'], $params); |
236 | 236 | if (isset($params['id'])) { |
237 | - $url = '/_ingest/pipeline/' . $this->encode($params['id']) . '/_simulate'; |
|
237 | + $url = '/_ingest/pipeline/'.$this->encode($params['id']).'/_simulate'; |
|
238 | 238 | $method = empty($params['body']) ? 'GET' : 'POST'; |
239 | 239 | } else { |
240 | 240 | $url = '/_ingest/pipeline/_simulate'; |
241 | 241 | $method = empty($params['body']) ? 'GET' : 'POST'; |
242 | 242 | } |
243 | - $url = $this->addQueryString($url, $params, ['verbose','pretty','human','error_trace','source','filter_path']); |
|
243 | + $url = $this->addQueryString($url, $params, ['verbose', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
244 | 244 | $headers = [ |
245 | 245 | 'Accept' => 'application/json', |
246 | 246 | '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 Ingest extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Ingest extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Deletes a pipeline. |
33 | 32 | * |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | public function deleteLifecycle(array $params = []) |
53 | 53 | { |
54 | 54 | $this->checkRequiredParameters(['policy'], $params); |
55 | - $url = '/_ilm/policy/' . $this->encode($params['policy']); |
|
55 | + $url = '/_ilm/policy/'.$this->encode($params['policy']); |
|
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 | ]; |
@@ -89,10 +89,10 @@ discard block |
||
89 | 89 | public function explainLifecycle(array $params = []) |
90 | 90 | { |
91 | 91 | $this->checkRequiredParameters(['index'], $params); |
92 | - $url = '/' . $this->encode($params['index']) . '/_ilm/explain'; |
|
92 | + $url = '/'.$this->encode($params['index']).'/_ilm/explain'; |
|
93 | 93 | $method = 'GET'; |
94 | 94 | |
95 | - $url = $this->addQueryString($url, $params, ['only_managed','only_errors','pretty','human','error_trace','source','filter_path']); |
|
95 | + $url = $this->addQueryString($url, $params, ['only_managed', 'only_errors', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
96 | 96 | $headers = [ |
97 | 97 | 'Accept' => 'application/json', |
98 | 98 | ]; |
@@ -123,13 +123,13 @@ discard block |
||
123 | 123 | public function getLifecycle(array $params = []) |
124 | 124 | { |
125 | 125 | if (isset($params['policy'])) { |
126 | - $url = '/_ilm/policy/' . $this->encode($params['policy']); |
|
126 | + $url = '/_ilm/policy/'.$this->encode($params['policy']); |
|
127 | 127 | $method = 'GET'; |
128 | 128 | } else { |
129 | 129 | $url = '/_ilm/policy'; |
130 | 130 | $method = 'GET'; |
131 | 131 | } |
132 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
132 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
133 | 133 | $headers = [ |
134 | 134 | 'Accept' => 'application/json', |
135 | 135 | ]; |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $url = '/_ilm/status'; |
162 | 162 | $method = 'GET'; |
163 | 163 | |
164 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
164 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
165 | 165 | $headers = [ |
166 | 166 | 'Accept' => 'application/json', |
167 | 167 | ]; |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $url = '/_ilm/migrate_to_data_tiers'; |
196 | 196 | $method = 'POST'; |
197 | 197 | |
198 | - $url = $this->addQueryString($url, $params, ['dry_run','pretty','human','error_trace','source','filter_path']); |
|
198 | + $url = $this->addQueryString($url, $params, ['dry_run', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
199 | 199 | $headers = [ |
200 | 200 | 'Accept' => 'application/json', |
201 | 201 | 'Content-Type' => 'application/json', |
@@ -229,10 +229,10 @@ discard block |
||
229 | 229 | public function moveToStep(array $params = []) |
230 | 230 | { |
231 | 231 | $this->checkRequiredParameters(['index'], $params); |
232 | - $url = '/_ilm/move/' . $this->encode($params['index']); |
|
232 | + $url = '/_ilm/move/'.$this->encode($params['index']); |
|
233 | 233 | $method = 'POST'; |
234 | 234 | |
235 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
235 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
236 | 236 | $headers = [ |
237 | 237 | 'Accept' => 'application/json', |
238 | 238 | 'Content-Type' => 'application/json', |
@@ -266,10 +266,10 @@ discard block |
||
266 | 266 | public function putLifecycle(array $params = []) |
267 | 267 | { |
268 | 268 | $this->checkRequiredParameters(['policy'], $params); |
269 | - $url = '/_ilm/policy/' . $this->encode($params['policy']); |
|
269 | + $url = '/_ilm/policy/'.$this->encode($params['policy']); |
|
270 | 270 | $method = 'PUT'; |
271 | 271 | |
272 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
272 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
273 | 273 | $headers = [ |
274 | 274 | 'Accept' => 'application/json', |
275 | 275 | 'Content-Type' => 'application/json', |
@@ -302,10 +302,10 @@ discard block |
||
302 | 302 | public function removePolicy(array $params = []) |
303 | 303 | { |
304 | 304 | $this->checkRequiredParameters(['index'], $params); |
305 | - $url = '/' . $this->encode($params['index']) . '/_ilm/remove'; |
|
305 | + $url = '/'.$this->encode($params['index']).'/_ilm/remove'; |
|
306 | 306 | $method = 'POST'; |
307 | 307 | |
308 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
308 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
309 | 309 | $headers = [ |
310 | 310 | 'Accept' => 'application/json', |
311 | 311 | ]; |
@@ -337,10 +337,10 @@ discard block |
||
337 | 337 | public function retry(array $params = []) |
338 | 338 | { |
339 | 339 | $this->checkRequiredParameters(['index'], $params); |
340 | - $url = '/' . $this->encode($params['index']) . '/_ilm/retry'; |
|
340 | + $url = '/'.$this->encode($params['index']).'/_ilm/retry'; |
|
341 | 341 | $method = 'POST'; |
342 | 342 | |
343 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
343 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
344 | 344 | $headers = [ |
345 | 345 | 'Accept' => 'application/json', |
346 | 346 | ]; |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | $url = '/_ilm/start'; |
373 | 373 | $method = 'POST'; |
374 | 374 | |
375 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
375 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
376 | 376 | $headers = [ |
377 | 377 | 'Accept' => 'application/json', |
378 | 378 | ]; |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | $url = '/_ilm/stop'; |
405 | 405 | $method = 'POST'; |
406 | 406 | |
407 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
407 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
408 | 408 | $headers = [ |
409 | 409 | 'Accept' => 'application/json', |
410 | 410 | ]; |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Ilm extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Ilm extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted. |
33 | 32 | * |