@@ -54,13 +54,13 @@ discard block |
||
| 54 | 54 | { |
| 55 | 55 | $this->checkRequiredParameters(['watch_id'], $params); |
| 56 | 56 | if (isset($params['action_id'])) { |
| 57 | - $url = '/_watcher/watch/' . $this->encode($params['watch_id']) . '/_ack/' . $this->encode($params['action_id']); |
|
| 57 | + $url = '/_watcher/watch/'.$this->encode($params['watch_id']).'/_ack/'.$this->encode($params['action_id']); |
|
| 58 | 58 | $method = 'PUT'; |
| 59 | 59 | } else { |
| 60 | - $url = '/_watcher/watch/' . $this->encode($params['watch_id']) . '/_ack'; |
|
| 60 | + $url = '/_watcher/watch/'.$this->encode($params['watch_id']).'/_ack'; |
|
| 61 | 61 | $method = 'PUT'; |
| 62 | 62 | } |
| 63 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 63 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 64 | 64 | $headers = [ |
| 65 | 65 | 'Accept' => 'application/json', |
| 66 | 66 | ]; |
@@ -92,10 +92,10 @@ discard block |
||
| 92 | 92 | public function activateWatch(array $params = []) |
| 93 | 93 | { |
| 94 | 94 | $this->checkRequiredParameters(['watch_id'], $params); |
| 95 | - $url = '/_watcher/watch/' . $this->encode($params['watch_id']) . '/_activate'; |
|
| 95 | + $url = '/_watcher/watch/'.$this->encode($params['watch_id']).'/_activate'; |
|
| 96 | 96 | $method = 'PUT'; |
| 97 | 97 | |
| 98 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 98 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 99 | 99 | $headers = [ |
| 100 | 100 | 'Accept' => 'application/json', |
| 101 | 101 | ]; |
@@ -127,10 +127,10 @@ discard block |
||
| 127 | 127 | public function deactivateWatch(array $params = []) |
| 128 | 128 | { |
| 129 | 129 | $this->checkRequiredParameters(['watch_id'], $params); |
| 130 | - $url = '/_watcher/watch/' . $this->encode($params['watch_id']) . '/_deactivate'; |
|
| 130 | + $url = '/_watcher/watch/'.$this->encode($params['watch_id']).'/_deactivate'; |
|
| 131 | 131 | $method = 'PUT'; |
| 132 | 132 | |
| 133 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 133 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 134 | 134 | $headers = [ |
| 135 | 135 | 'Accept' => 'application/json', |
| 136 | 136 | ]; |
@@ -162,10 +162,10 @@ discard block |
||
| 162 | 162 | public function deleteWatch(array $params = []) |
| 163 | 163 | { |
| 164 | 164 | $this->checkRequiredParameters(['id'], $params); |
| 165 | - $url = '/_watcher/watch/' . $this->encode($params['id']); |
|
| 165 | + $url = '/_watcher/watch/'.$this->encode($params['id']); |
|
| 166 | 166 | $method = 'DELETE'; |
| 167 | 167 | |
| 168 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 168 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 169 | 169 | $headers = [ |
| 170 | 170 | 'Accept' => 'application/json', |
| 171 | 171 | ]; |
@@ -198,13 +198,13 @@ discard block |
||
| 198 | 198 | public function executeWatch(array $params = []) |
| 199 | 199 | { |
| 200 | 200 | if (isset($params['id'])) { |
| 201 | - $url = '/_watcher/watch/' . $this->encode($params['id']) . '/_execute'; |
|
| 201 | + $url = '/_watcher/watch/'.$this->encode($params['id']).'/_execute'; |
|
| 202 | 202 | $method = 'PUT'; |
| 203 | 203 | } else { |
| 204 | 204 | $url = '/_watcher/watch/_execute'; |
| 205 | 205 | $method = 'PUT'; |
| 206 | 206 | } |
| 207 | - $url = $this->addQueryString($url, $params, ['debug','pretty','human','error_trace','source','filter_path']); |
|
| 207 | + $url = $this->addQueryString($url, $params, ['debug', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 208 | 208 | $headers = [ |
| 209 | 209 | 'Accept' => 'application/json', |
| 210 | 210 | 'Content-Type' => 'application/json', |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | $url = '/_watcher/settings'; |
| 238 | 238 | $method = 'GET'; |
| 239 | 239 | |
| 240 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 240 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 241 | 241 | $headers = [ |
| 242 | 242 | 'Accept' => 'application/json', |
| 243 | 243 | 'Content-Type' => 'application/json', |
@@ -270,10 +270,10 @@ discard block |
||
| 270 | 270 | public function getWatch(array $params = []) |
| 271 | 271 | { |
| 272 | 272 | $this->checkRequiredParameters(['id'], $params); |
| 273 | - $url = '/_watcher/watch/' . $this->encode($params['id']); |
|
| 273 | + $url = '/_watcher/watch/'.$this->encode($params['id']); |
|
| 274 | 274 | $method = 'GET'; |
| 275 | 275 | |
| 276 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 276 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 277 | 277 | $headers = [ |
| 278 | 278 | 'Accept' => 'application/json', |
| 279 | 279 | ]; |
@@ -310,10 +310,10 @@ discard block |
||
| 310 | 310 | public function putWatch(array $params = []) |
| 311 | 311 | { |
| 312 | 312 | $this->checkRequiredParameters(['id'], $params); |
| 313 | - $url = '/_watcher/watch/' . $this->encode($params['id']); |
|
| 313 | + $url = '/_watcher/watch/'.$this->encode($params['id']); |
|
| 314 | 314 | $method = 'PUT'; |
| 315 | 315 | |
| 316 | - $url = $this->addQueryString($url, $params, ['active','version','if_seq_no','if_primary_term','pretty','human','error_trace','source','filter_path']); |
|
| 316 | + $url = $this->addQueryString($url, $params, ['active', 'version', 'if_seq_no', 'if_primary_term', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 317 | 317 | $headers = [ |
| 318 | 318 | 'Accept' => 'application/json', |
| 319 | 319 | 'Content-Type' => 'application/json', |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | $url = '/_watcher/_query/watches'; |
| 348 | 348 | $method = empty($params['body']) ? 'GET' : 'POST'; |
| 349 | 349 | |
| 350 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 350 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 351 | 351 | $headers = [ |
| 352 | 352 | 'Accept' => 'application/json', |
| 353 | 353 | 'Content-Type' => 'application/json', |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | $url = '/_watcher/_start'; |
| 381 | 381 | $method = 'POST'; |
| 382 | 382 | |
| 383 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 383 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 384 | 384 | $headers = [ |
| 385 | 385 | 'Accept' => 'application/json', |
| 386 | 386 | ]; |
@@ -412,13 +412,13 @@ discard block |
||
| 412 | 412 | public function stats(array $params = []) |
| 413 | 413 | { |
| 414 | 414 | if (isset($params['metric'])) { |
| 415 | - $url = '/_watcher/stats/' . $this->encode($params['metric']); |
|
| 415 | + $url = '/_watcher/stats/'.$this->encode($params['metric']); |
|
| 416 | 416 | $method = 'GET'; |
| 417 | 417 | } else { |
| 418 | 418 | $url = '/_watcher/stats'; |
| 419 | 419 | $method = 'GET'; |
| 420 | 420 | } |
| 421 | - $url = $this->addQueryString($url, $params, ['emit_stacktraces','pretty','human','error_trace','source','filter_path']); |
|
| 421 | + $url = $this->addQueryString($url, $params, ['emit_stacktraces', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 422 | 422 | $headers = [ |
| 423 | 423 | 'Accept' => 'application/json', |
| 424 | 424 | ]; |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | $url = '/_watcher/_stop'; |
| 451 | 451 | $method = 'POST'; |
| 452 | 452 | |
| 453 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 453 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 454 | 454 | $headers = [ |
| 455 | 455 | 'Accept' => 'application/json', |
| 456 | 456 | ]; |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | $url = '/_watcher/settings'; |
| 485 | 485 | $method = 'PUT'; |
| 486 | 486 | |
| 487 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 487 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 488 | 488 | $headers = [ |
| 489 | 489 | 'Accept' => 'application/json', |
| 490 | 490 | '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 Watcher extends AbstractEndpoint |
|
| 30 | -{ |
|
| 29 | +class Watcher extends AbstractEndpoint { |
|
| 31 | 30 | /** |
| 32 | 31 | * Acknowledges a watch, manually throttling the execution of the watch's actions. |
| 33 | 32 | * |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $url = '/_features'; |
| 54 | 54 | $method = 'GET'; |
| 55 | 55 | |
| 56 | - $url = $this->addQueryString($url, $params, ['master_timeout','pretty','human','error_trace','source','filter_path']); |
|
| 56 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 57 | 57 | $headers = [ |
| 58 | 58 | 'Accept' => 'application/json', |
| 59 | 59 | ]; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $url = '/_features/_reset'; |
| 87 | 87 | $method = 'POST'; |
| 88 | 88 | |
| 89 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 89 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 90 | 90 | $headers = [ |
| 91 | 91 | 'Accept' => 'application/json', |
| 92 | 92 | ]; |
@@ -26,8 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * @generated This file is generated, please do not edit |
| 28 | 28 | */ |
| 29 | -class Features extends AbstractEndpoint |
|
| 30 | -{ |
|
| 29 | +class Features extends AbstractEndpoint { |
|
| 31 | 30 | /** |
| 32 | 31 | * Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot |
| 33 | 32 | * |
@@ -53,10 +53,10 @@ discard block |
||
| 53 | 53 | public function cancel(array $params = []) |
| 54 | 54 | { |
| 55 | 55 | $this->checkRequiredParameters(['connector_sync_job_id'], $params); |
| 56 | - $url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']) . '/_cancel'; |
|
| 56 | + $url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']).'/_cancel'; |
|
| 57 | 57 | $method = 'PUT'; |
| 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 checkIn(array $params = []) |
| 90 | 90 | { |
| 91 | 91 | $this->checkRequiredParameters(['connector_sync_job_id'], $params); |
| 92 | - $url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']) . '/_check_in'; |
|
| 92 | + $url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']).'/_check_in'; |
|
| 93 | 93 | $method = 'PUT'; |
| 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 delete(array $params = []) |
| 126 | 126 | { |
| 127 | 127 | $this->checkRequiredParameters(['connector_sync_job_id'], $params); |
| 128 | - $url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']); |
|
| 128 | + $url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']); |
|
| 129 | 129 | $method = 'DELETE'; |
| 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 | ]; |
@@ -161,11 +161,11 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public function error(array $params = []) |
| 163 | 163 | { |
| 164 | - $this->checkRequiredParameters(['connector_sync_job_id','body'], $params); |
|
| 165 | - $url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']) . '/_error'; |
|
| 164 | + $this->checkRequiredParameters(['connector_sync_job_id', 'body'], $params); |
|
| 165 | + $url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']).'/_error'; |
|
| 166 | 166 | $method = 'PUT'; |
| 167 | 167 | |
| 168 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 168 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 169 | 169 | $headers = [ |
| 170 | 170 | 'Accept' => 'application/json', |
| 171 | 171 | 'Content-Type' => 'application/json', |
@@ -199,10 +199,10 @@ discard block |
||
| 199 | 199 | public function get(array $params = []) |
| 200 | 200 | { |
| 201 | 201 | $this->checkRequiredParameters(['connector_sync_job_id'], $params); |
| 202 | - $url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']); |
|
| 202 | + $url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']); |
|
| 203 | 203 | $method = 'GET'; |
| 204 | 204 | |
| 205 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 205 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 206 | 206 | $headers = [ |
| 207 | 207 | 'Accept' => 'application/json', |
| 208 | 208 | ]; |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | $url = '/_connector/_sync_job'; |
| 241 | 241 | $method = 'GET'; |
| 242 | 242 | |
| 243 | - $url = $this->addQueryString($url, $params, ['from','size','status','connector_id','job_type','pretty','human','error_trace','source','filter_path']); |
|
| 243 | + $url = $this->addQueryString($url, $params, ['from', 'size', 'status', 'connector_id', 'job_type', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 244 | 244 | $headers = [ |
| 245 | 245 | 'Accept' => 'application/json', |
| 246 | 246 | ]; |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | $url = '/_connector/_sync_job'; |
| 276 | 276 | $method = 'POST'; |
| 277 | 277 | |
| 278 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 278 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 279 | 279 | $headers = [ |
| 280 | 280 | 'Accept' => 'application/json', |
| 281 | 281 | 'Content-Type' => 'application/json', |
@@ -309,11 +309,11 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | public function updateStats(array $params = []) |
| 311 | 311 | { |
| 312 | - $this->checkRequiredParameters(['connector_sync_job_id','body'], $params); |
|
| 313 | - $url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']) . '/_stats'; |
|
| 312 | + $this->checkRequiredParameters(['connector_sync_job_id', 'body'], $params); |
|
| 313 | + $url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']).'/_stats'; |
|
| 314 | 314 | $method = 'PUT'; |
| 315 | 315 | |
| 316 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 316 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 317 | 317 | $headers = [ |
| 318 | 318 | 'Accept' => 'application/json', |
| 319 | 319 | '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 ConnectorSyncJob extends AbstractEndpoint |
|
| 30 | -{ |
|
| 29 | +class ConnectorSyncJob extends AbstractEndpoint { |
|
| 31 | 30 | /** |
| 32 | 31 | * Cancels a connector sync job. |
| 33 | 32 | * |
@@ -53,10 +53,10 @@ discard block |
||
| 53 | 53 | public function delete(array $params = []) |
| 54 | 54 | { |
| 55 | 55 | $this->checkRequiredParameters(['ruleset_id'], $params); |
| 56 | - $url = '/_query_rules/' . $this->encode($params['ruleset_id']); |
|
| 56 | + $url = '/_query_rules/'.$this->encode($params['ruleset_id']); |
|
| 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 get(array $params = []) |
| 90 | 90 | { |
| 91 | 91 | $this->checkRequiredParameters(['ruleset_id'], $params); |
| 92 | - $url = '/_query_rules/' . $this->encode($params['ruleset_id']); |
|
| 92 | + $url = '/_query_rules/'.$this->encode($params['ruleset_id']); |
|
| 93 | 93 | $method = 'GET'; |
| 94 | 94 | |
| 95 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 95 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 96 | 96 | $headers = [ |
| 97 | 97 | 'Accept' => 'application/json', |
| 98 | 98 | ]; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $url = '/_query_rules'; |
| 128 | 128 | $method = 'GET'; |
| 129 | 129 | |
| 130 | - $url = $this->addQueryString($url, $params, ['from','size','pretty','human','error_trace','source','filter_path']); |
|
| 130 | + $url = $this->addQueryString($url, $params, ['from', 'size', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 131 | 131 | $headers = [ |
| 132 | 132 | 'Accept' => 'application/json', |
| 133 | 133 | ]; |
@@ -160,11 +160,11 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public function put(array $params = []) |
| 162 | 162 | { |
| 163 | - $this->checkRequiredParameters(['ruleset_id','body'], $params); |
|
| 164 | - $url = '/_query_rules/' . $this->encode($params['ruleset_id']); |
|
| 163 | + $this->checkRequiredParameters(['ruleset_id', 'body'], $params); |
|
| 164 | + $url = '/_query_rules/'.$this->encode($params['ruleset_id']); |
|
| 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', |
@@ -26,8 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * @generated This file is generated, please do not edit |
| 28 | 28 | */ |
| 29 | -class QueryRuleset extends AbstractEndpoint |
|
| 30 | -{ |
|
| 29 | +class QueryRuleset extends AbstractEndpoint { |
|
| 31 | 30 | /** |
| 32 | 31 | * Deletes a query ruleset. |
| 33 | 32 | * |
@@ -56,13 +56,13 @@ |
||
| 56 | 56 | { |
| 57 | 57 | $this->checkRequiredParameters(['body'], $params); |
| 58 | 58 | if (isset($params['type'])) { |
| 59 | - $url = '/_monitoring/' . $this->encode($params['type']) . '/bulk'; |
|
| 59 | + $url = '/_monitoring/'.$this->encode($params['type']).'/bulk'; |
|
| 60 | 60 | $method = 'POST'; |
| 61 | 61 | } else { |
| 62 | 62 | $url = '/_monitoring/bulk'; |
| 63 | 63 | $method = 'POST'; |
| 64 | 64 | } |
| 65 | - $url = $this->addQueryString($url, $params, ['system_id','system_api_version','interval','pretty','human','error_trace','source','filter_path']); |
|
| 65 | + $url = $this->addQueryString($url, $params, ['system_id', 'system_api_version', 'interval', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 66 | 66 | $headers = [ |
| 67 | 67 | 'Accept' => 'application/json', |
| 68 | 68 | 'Content-Type' => 'application/x-ndjson', |
@@ -26,8 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * @generated This file is generated, please do not edit |
| 28 | 28 | */ |
| 29 | -class Monitoring extends AbstractEndpoint |
|
| 30 | -{ |
|
| 29 | +class Monitoring extends AbstractEndpoint { |
|
| 31 | 30 | /** |
| 32 | 31 | * Used by the monitoring features to send monitoring data. |
| 33 | 32 | * |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | public function delete(array $params = []) |
| 53 | 53 | { |
| 54 | 54 | $this->checkRequiredParameters(['id'], $params); |
| 55 | - $url = '/_eql/search/' . $this->encode($params['id']); |
|
| 55 | + $url = '/_eql/search/'.$this->encode($params['id']); |
|
| 56 | 56 | $method = 'DELETE'; |
| 57 | 57 | |
| 58 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 58 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 59 | 59 | $headers = [ |
| 60 | 60 | 'Accept' => 'application/json', |
| 61 | 61 | ]; |
@@ -89,10 +89,10 @@ discard block |
||
| 89 | 89 | public function get(array $params = []) |
| 90 | 90 | { |
| 91 | 91 | $this->checkRequiredParameters(['id'], $params); |
| 92 | - $url = '/_eql/search/' . $this->encode($params['id']); |
|
| 92 | + $url = '/_eql/search/'.$this->encode($params['id']); |
|
| 93 | 93 | $method = 'GET'; |
| 94 | 94 | |
| 95 | - $url = $this->addQueryString($url, $params, ['wait_for_completion_timeout','keep_alive','pretty','human','error_trace','source','filter_path']); |
|
| 95 | + $url = $this->addQueryString($url, $params, ['wait_for_completion_timeout', 'keep_alive', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 96 | 96 | $headers = [ |
| 97 | 97 | 'Accept' => 'application/json', |
| 98 | 98 | ]; |
@@ -124,10 +124,10 @@ discard block |
||
| 124 | 124 | public function getStatus(array $params = []) |
| 125 | 125 | { |
| 126 | 126 | $this->checkRequiredParameters(['id'], $params); |
| 127 | - $url = '/_eql/search/status/' . $this->encode($params['id']); |
|
| 127 | + $url = '/_eql/search/status/'.$this->encode($params['id']); |
|
| 128 | 128 | $method = 'GET'; |
| 129 | 129 | |
| 130 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 130 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 131 | 131 | $headers = [ |
| 132 | 132 | 'Accept' => 'application/json', |
| 133 | 133 | ]; |
@@ -162,11 +162,11 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | public function search(array $params = []) |
| 164 | 164 | { |
| 165 | - $this->checkRequiredParameters(['index','body'], $params); |
|
| 166 | - $url = '/' . $this->encode($params['index']) . '/_eql/search'; |
|
| 165 | + $this->checkRequiredParameters(['index', 'body'], $params); |
|
| 166 | + $url = '/'.$this->encode($params['index']).'/_eql/search'; |
|
| 167 | 167 | $method = empty($params['body']) ? 'GET' : 'POST'; |
| 168 | 168 | |
| 169 | - $url = $this->addQueryString($url, $params, ['wait_for_completion_timeout','keep_on_completion','keep_alive','pretty','human','error_trace','source','filter_path']); |
|
| 169 | + $url = $this->addQueryString($url, $params, ['wait_for_completion_timeout', 'keep_on_completion', 'keep_alive', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 170 | 170 | $headers = [ |
| 171 | 171 | 'Accept' => 'application/json', |
| 172 | 172 | '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 Eql extends AbstractEndpoint |
|
| 30 | -{ |
|
| 29 | +class Eql extends AbstractEndpoint { |
|
| 31 | 30 | /** |
| 32 | 31 | * Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. |
| 33 | 32 | * |
@@ -58,13 +58,13 @@ discard block |
||
| 58 | 58 | public function aliases(array $params = []) |
| 59 | 59 | { |
| 60 | 60 | if (isset($params['name'])) { |
| 61 | - $url = '/_cat/aliases/' . $this->encode($params['name']); |
|
| 61 | + $url = '/_cat/aliases/'.$this->encode($params['name']); |
|
| 62 | 62 | $method = 'GET'; |
| 63 | 63 | } else { |
| 64 | 64 | $url = '/_cat/aliases'; |
| 65 | 65 | $method = 'GET'; |
| 66 | 66 | } |
| 67 | - $url = $this->addQueryString($url, $params, ['format','local','h','help','s','v','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
| 67 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'h', 'help', 's', 'v', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 68 | 68 | $headers = [ |
| 69 | 69 | 'Accept' => 'text/plain,application/json', |
| 70 | 70 | ]; |
@@ -103,13 +103,13 @@ discard block |
||
| 103 | 103 | public function allocation(array $params = []) |
| 104 | 104 | { |
| 105 | 105 | if (isset($params['node_id'])) { |
| 106 | - $url = '/_cat/allocation/' . $this->encode($params['node_id']); |
|
| 106 | + $url = '/_cat/allocation/'.$this->encode($params['node_id']); |
|
| 107 | 107 | $method = 'GET'; |
| 108 | 108 | } else { |
| 109 | 109 | $url = '/_cat/allocation'; |
| 110 | 110 | $method = 'GET'; |
| 111 | 111 | } |
| 112 | - $url = $this->addQueryString($url, $params, ['format','bytes','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 112 | + $url = $this->addQueryString($url, $params, ['format', 'bytes', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 113 | 113 | $headers = [ |
| 114 | 114 | 'Accept' => 'text/plain,application/json', |
| 115 | 115 | ]; |
@@ -147,13 +147,13 @@ discard block |
||
| 147 | 147 | public function componentTemplates(array $params = []) |
| 148 | 148 | { |
| 149 | 149 | if (isset($params['name'])) { |
| 150 | - $url = '/_cat/component_templates/' . $this->encode($params['name']); |
|
| 150 | + $url = '/_cat/component_templates/'.$this->encode($params['name']); |
|
| 151 | 151 | $method = 'GET'; |
| 152 | 152 | } else { |
| 153 | 153 | $url = '/_cat/component_templates'; |
| 154 | 154 | $method = 'GET'; |
| 155 | 155 | } |
| 156 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 156 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 157 | 157 | $headers = [ |
| 158 | 158 | 'Accept' => 'text/plain,application/json', |
| 159 | 159 | ]; |
@@ -189,13 +189,13 @@ discard block |
||
| 189 | 189 | public function count(array $params = []) |
| 190 | 190 | { |
| 191 | 191 | if (isset($params['index'])) { |
| 192 | - $url = '/_cat/count/' . $this->encode($params['index']); |
|
| 192 | + $url = '/_cat/count/'.$this->encode($params['index']); |
|
| 193 | 193 | $method = 'GET'; |
| 194 | 194 | } else { |
| 195 | 195 | $url = '/_cat/count'; |
| 196 | 196 | $method = 'GET'; |
| 197 | 197 | } |
| 198 | - $url = $this->addQueryString($url, $params, ['format','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 198 | + $url = $this->addQueryString($url, $params, ['format', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 199 | 199 | $headers = [ |
| 200 | 200 | 'Accept' => 'text/plain,application/json', |
| 201 | 201 | ]; |
@@ -232,13 +232,13 @@ discard block |
||
| 232 | 232 | public function fielddata(array $params = []) |
| 233 | 233 | { |
| 234 | 234 | if (isset($params['fields'])) { |
| 235 | - $url = '/_cat/fielddata/' . $this->encode($params['fields']); |
|
| 235 | + $url = '/_cat/fielddata/'.$this->encode($params['fields']); |
|
| 236 | 236 | $method = 'GET'; |
| 237 | 237 | } else { |
| 238 | 238 | $url = '/_cat/fielddata'; |
| 239 | 239 | $method = 'GET'; |
| 240 | 240 | } |
| 241 | - $url = $this->addQueryString($url, $params, ['format','bytes','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 241 | + $url = $this->addQueryString($url, $params, ['format', 'bytes', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 242 | 242 | $headers = [ |
| 243 | 243 | 'Accept' => 'text/plain,application/json', |
| 244 | 244 | ]; |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | $url = '/_cat/health'; |
| 278 | 278 | $method = 'GET'; |
| 279 | 279 | |
| 280 | - $url = $this->addQueryString($url, $params, ['format','h','help','s','time','ts','v','pretty','human','error_trace','source','filter_path']); |
|
| 280 | + $url = $this->addQueryString($url, $params, ['format', 'h', 'help', 's', 'time', 'ts', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 281 | 281 | $headers = [ |
| 282 | 282 | 'Accept' => 'text/plain,application/json', |
| 283 | 283 | ]; |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | $url = '/_cat'; |
| 312 | 312 | $method = 'GET'; |
| 313 | 313 | |
| 314 | - $url = $this->addQueryString($url, $params, ['help','s','pretty','human','error_trace','source','filter_path']); |
|
| 314 | + $url = $this->addQueryString($url, $params, ['help', 's', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 315 | 315 | $headers = [ |
| 316 | 316 | 'Accept' => 'text/plain', |
| 317 | 317 | ]; |
@@ -354,13 +354,13 @@ discard block |
||
| 354 | 354 | public function indices(array $params = []) |
| 355 | 355 | { |
| 356 | 356 | if (isset($params['index'])) { |
| 357 | - $url = '/_cat/indices/' . $this->encode($params['index']); |
|
| 357 | + $url = '/_cat/indices/'.$this->encode($params['index']); |
|
| 358 | 358 | $method = 'GET'; |
| 359 | 359 | } else { |
| 360 | 360 | $url = '/_cat/indices'; |
| 361 | 361 | $method = 'GET'; |
| 362 | 362 | } |
| 363 | - $url = $this->addQueryString($url, $params, ['format','bytes','master_timeout','h','health','help','pri','s','time','v','include_unloaded_segments','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
| 363 | + $url = $this->addQueryString($url, $params, ['format', 'bytes', 'master_timeout', 'h', 'health', 'help', 'pri', 's', 'time', 'v', 'include_unloaded_segments', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 364 | 364 | $headers = [ |
| 365 | 365 | 'Accept' => 'text/plain,application/json', |
| 366 | 366 | ]; |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | $url = '/_cat/master'; |
| 400 | 400 | $method = 'GET'; |
| 401 | 401 | |
| 402 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 402 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 403 | 403 | $headers = [ |
| 404 | 404 | 'Accept' => 'text/plain,application/json', |
| 405 | 405 | ]; |
@@ -438,13 +438,13 @@ discard block |
||
| 438 | 438 | public function mlDataFrameAnalytics(array $params = []) |
| 439 | 439 | { |
| 440 | 440 | if (isset($params['id'])) { |
| 441 | - $url = '/_cat/ml/data_frame/analytics/' . $this->encode($params['id']); |
|
| 441 | + $url = '/_cat/ml/data_frame/analytics/'.$this->encode($params['id']); |
|
| 442 | 442 | $method = 'GET'; |
| 443 | 443 | } else { |
| 444 | 444 | $url = '/_cat/ml/data_frame/analytics'; |
| 445 | 445 | $method = 'GET'; |
| 446 | 446 | } |
| 447 | - $url = $this->addQueryString($url, $params, ['allow_no_match','bytes','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
| 447 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'bytes', 'format', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 448 | 448 | $headers = [ |
| 449 | 449 | 'Accept' => 'text/plain,application/json', |
| 450 | 450 | ]; |
@@ -482,13 +482,13 @@ discard block |
||
| 482 | 482 | public function mlDatafeeds(array $params = []) |
| 483 | 483 | { |
| 484 | 484 | if (isset($params['datafeed_id'])) { |
| 485 | - $url = '/_cat/ml/datafeeds/' . $this->encode($params['datafeed_id']); |
|
| 485 | + $url = '/_cat/ml/datafeeds/'.$this->encode($params['datafeed_id']); |
|
| 486 | 486 | $method = 'GET'; |
| 487 | 487 | } else { |
| 488 | 488 | $url = '/_cat/ml/datafeeds'; |
| 489 | 489 | $method = 'GET'; |
| 490 | 490 | } |
| 491 | - $url = $this->addQueryString($url, $params, ['allow_no_match','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
| 491 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'format', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 492 | 492 | $headers = [ |
| 493 | 493 | 'Accept' => 'text/plain,application/json', |
| 494 | 494 | ]; |
@@ -527,13 +527,13 @@ discard block |
||
| 527 | 527 | public function mlJobs(array $params = []) |
| 528 | 528 | { |
| 529 | 529 | if (isset($params['job_id'])) { |
| 530 | - $url = '/_cat/ml/anomaly_detectors/' . $this->encode($params['job_id']); |
|
| 530 | + $url = '/_cat/ml/anomaly_detectors/'.$this->encode($params['job_id']); |
|
| 531 | 531 | $method = 'GET'; |
| 532 | 532 | } else { |
| 533 | 533 | $url = '/_cat/ml/anomaly_detectors'; |
| 534 | 534 | $method = 'GET'; |
| 535 | 535 | } |
| 536 | - $url = $this->addQueryString($url, $params, ['allow_no_match','bytes','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
| 536 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'bytes', 'format', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 537 | 537 | $headers = [ |
| 538 | 538 | 'Accept' => 'text/plain,application/json', |
| 539 | 539 | ]; |
@@ -574,13 +574,13 @@ discard block |
||
| 574 | 574 | public function mlTrainedModels(array $params = []) |
| 575 | 575 | { |
| 576 | 576 | if (isset($params['model_id'])) { |
| 577 | - $url = '/_cat/ml/trained_models/' . $this->encode($params['model_id']); |
|
| 577 | + $url = '/_cat/ml/trained_models/'.$this->encode($params['model_id']); |
|
| 578 | 578 | $method = 'GET'; |
| 579 | 579 | } else { |
| 580 | 580 | $url = '/_cat/ml/trained_models'; |
| 581 | 581 | $method = 'GET'; |
| 582 | 582 | } |
| 583 | - $url = $this->addQueryString($url, $params, ['allow_no_match','from','size','bytes','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
| 583 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'from', 'size', 'bytes', 'format', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 584 | 584 | $headers = [ |
| 585 | 585 | 'Accept' => 'text/plain,application/json', |
| 586 | 586 | ]; |
@@ -619,7 +619,7 @@ discard block |
||
| 619 | 619 | $url = '/_cat/nodeattrs'; |
| 620 | 620 | $method = 'GET'; |
| 621 | 621 | |
| 622 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 622 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 623 | 623 | $headers = [ |
| 624 | 624 | 'Accept' => 'text/plain,application/json', |
| 625 | 625 | ]; |
@@ -661,7 +661,7 @@ discard block |
||
| 661 | 661 | $url = '/_cat/nodes'; |
| 662 | 662 | $method = 'GET'; |
| 663 | 663 | |
| 664 | - $url = $this->addQueryString($url, $params, ['bytes','format','full_id','master_timeout','h','help','s','time','v','include_unloaded_segments','pretty','human','error_trace','source','filter_path']); |
|
| 664 | + $url = $this->addQueryString($url, $params, ['bytes', 'format', 'full_id', 'master_timeout', 'h', 'help', 's', 'time', 'v', 'include_unloaded_segments', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 665 | 665 | $headers = [ |
| 666 | 666 | 'Accept' => 'text/plain,application/json', |
| 667 | 667 | ]; |
@@ -701,7 +701,7 @@ discard block |
||
| 701 | 701 | $url = '/_cat/pending_tasks'; |
| 702 | 702 | $method = 'GET'; |
| 703 | 703 | |
| 704 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
| 704 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 705 | 705 | $headers = [ |
| 706 | 706 | 'Accept' => 'text/plain,application/json', |
| 707 | 707 | ]; |
@@ -741,7 +741,7 @@ discard block |
||
| 741 | 741 | $url = '/_cat/plugins'; |
| 742 | 742 | $method = 'GET'; |
| 743 | 743 | |
| 744 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','include_bootstrap','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 744 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 'include_bootstrap', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 745 | 745 | $headers = [ |
| 746 | 746 | 'Accept' => 'text/plain,application/json', |
| 747 | 747 | ]; |
@@ -781,13 +781,13 @@ discard block |
||
| 781 | 781 | public function recovery(array $params = []) |
| 782 | 782 | { |
| 783 | 783 | if (isset($params['index'])) { |
| 784 | - $url = '/_cat/recovery/' . $this->encode($params['index']); |
|
| 784 | + $url = '/_cat/recovery/'.$this->encode($params['index']); |
|
| 785 | 785 | $method = 'GET'; |
| 786 | 786 | } else { |
| 787 | 787 | $url = '/_cat/recovery'; |
| 788 | 788 | $method = 'GET'; |
| 789 | 789 | } |
| 790 | - $url = $this->addQueryString($url, $params, ['format','active_only','bytes','detailed','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
| 790 | + $url = $this->addQueryString($url, $params, ['format', 'active_only', 'bytes', 'detailed', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 791 | 791 | $headers = [ |
| 792 | 792 | 'Accept' => 'text/plain,application/json', |
| 793 | 793 | ]; |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | $url = '/_cat/repositories'; |
| 827 | 827 | $method = 'GET'; |
| 828 | 828 | |
| 829 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 829 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 830 | 830 | $headers = [ |
| 831 | 831 | 'Accept' => 'text/plain,application/json', |
| 832 | 832 | ]; |
@@ -863,13 +863,13 @@ discard block |
||
| 863 | 863 | public function segments(array $params = []) |
| 864 | 864 | { |
| 865 | 865 | if (isset($params['index'])) { |
| 866 | - $url = '/_cat/segments/' . $this->encode($params['index']); |
|
| 866 | + $url = '/_cat/segments/'.$this->encode($params['index']); |
|
| 867 | 867 | $method = 'GET'; |
| 868 | 868 | } else { |
| 869 | 869 | $url = '/_cat/segments'; |
| 870 | 870 | $method = 'GET'; |
| 871 | 871 | } |
| 872 | - $url = $this->addQueryString($url, $params, ['format','bytes','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 872 | + $url = $this->addQueryString($url, $params, ['format', 'bytes', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 873 | 873 | $headers = [ |
| 874 | 874 | 'Accept' => 'text/plain,application/json', |
| 875 | 875 | ]; |
@@ -908,13 +908,13 @@ discard block |
||
| 908 | 908 | public function shards(array $params = []) |
| 909 | 909 | { |
| 910 | 910 | if (isset($params['index'])) { |
| 911 | - $url = '/_cat/shards/' . $this->encode($params['index']); |
|
| 911 | + $url = '/_cat/shards/'.$this->encode($params['index']); |
|
| 912 | 912 | $method = 'GET'; |
| 913 | 913 | } else { |
| 914 | 914 | $url = '/_cat/shards'; |
| 915 | 915 | $method = 'GET'; |
| 916 | 916 | } |
| 917 | - $url = $this->addQueryString($url, $params, ['format','bytes','master_timeout','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
| 917 | + $url = $this->addQueryString($url, $params, ['format', 'bytes', 'master_timeout', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 918 | 918 | $headers = [ |
| 919 | 919 | 'Accept' => 'text/plain,application/json', |
| 920 | 920 | ]; |
@@ -953,13 +953,13 @@ discard block |
||
| 953 | 953 | public function snapshots(array $params = []) |
| 954 | 954 | { |
| 955 | 955 | if (isset($params['repository'])) { |
| 956 | - $url = '/_cat/snapshots/' . $this->encode($params['repository']); |
|
| 956 | + $url = '/_cat/snapshots/'.$this->encode($params['repository']); |
|
| 957 | 957 | $method = 'GET'; |
| 958 | 958 | } else { |
| 959 | 959 | $url = '/_cat/snapshots'; |
| 960 | 960 | $method = 'GET'; |
| 961 | 961 | } |
| 962 | - $url = $this->addQueryString($url, $params, ['format','ignore_unavailable','master_timeout','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
| 962 | + $url = $this->addQueryString($url, $params, ['format', 'ignore_unavailable', 'master_timeout', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 963 | 963 | $headers = [ |
| 964 | 964 | 'Accept' => 'text/plain,application/json', |
| 965 | 965 | ]; |
@@ -1002,7 +1002,7 @@ discard block |
||
| 1002 | 1002 | $url = '/_cat/tasks'; |
| 1003 | 1003 | $method = 'GET'; |
| 1004 | 1004 | |
| 1005 | - $url = $this->addQueryString($url, $params, ['format','nodes','actions','detailed','parent_task_id','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
| 1005 | + $url = $this->addQueryString($url, $params, ['format', 'nodes', 'actions', 'detailed', 'parent_task_id', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 1006 | 1006 | $headers = [ |
| 1007 | 1007 | 'Accept' => 'text/plain,application/json', |
| 1008 | 1008 | ]; |
@@ -1040,13 +1040,13 @@ discard block |
||
| 1040 | 1040 | public function templates(array $params = []) |
| 1041 | 1041 | { |
| 1042 | 1042 | if (isset($params['name'])) { |
| 1043 | - $url = '/_cat/templates/' . $this->encode($params['name']); |
|
| 1043 | + $url = '/_cat/templates/'.$this->encode($params['name']); |
|
| 1044 | 1044 | $method = 'GET'; |
| 1045 | 1045 | } else { |
| 1046 | 1046 | $url = '/_cat/templates'; |
| 1047 | 1047 | $method = 'GET'; |
| 1048 | 1048 | } |
| 1049 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 1049 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 1050 | 1050 | $headers = [ |
| 1051 | 1051 | 'Accept' => 'text/plain,application/json', |
| 1052 | 1052 | ]; |
@@ -1086,13 +1086,13 @@ discard block |
||
| 1086 | 1086 | public function threadPool(array $params = []) |
| 1087 | 1087 | { |
| 1088 | 1088 | if (isset($params['thread_pool_patterns'])) { |
| 1089 | - $url = '/_cat/thread_pool/' . $this->encode($params['thread_pool_patterns']); |
|
| 1089 | + $url = '/_cat/thread_pool/'.$this->encode($params['thread_pool_patterns']); |
|
| 1090 | 1090 | $method = 'GET'; |
| 1091 | 1091 | } else { |
| 1092 | 1092 | $url = '/_cat/thread_pool'; |
| 1093 | 1093 | $method = 'GET'; |
| 1094 | 1094 | } |
| 1095 | - $url = $this->addQueryString($url, $params, ['format','time','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
| 1095 | + $url = $this->addQueryString($url, $params, ['format', 'time', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 1096 | 1096 | $headers = [ |
| 1097 | 1097 | 'Accept' => 'text/plain,application/json', |
| 1098 | 1098 | ]; |
@@ -1132,13 +1132,13 @@ discard block |
||
| 1132 | 1132 | public function transforms(array $params = []) |
| 1133 | 1133 | { |
| 1134 | 1134 | if (isset($params['transform_id'])) { |
| 1135 | - $url = '/_cat/transforms/' . $this->encode($params['transform_id']); |
|
| 1135 | + $url = '/_cat/transforms/'.$this->encode($params['transform_id']); |
|
| 1136 | 1136 | $method = 'GET'; |
| 1137 | 1137 | } else { |
| 1138 | 1138 | $url = '/_cat/transforms'; |
| 1139 | 1139 | $method = 'GET'; |
| 1140 | 1140 | } |
| 1141 | - $url = $this->addQueryString($url, $params, ['from','size','allow_no_match','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
| 1141 | + $url = $this->addQueryString($url, $params, ['from', 'size', 'allow_no_match', 'format', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 1142 | 1142 | $headers = [ |
| 1143 | 1143 | 'Accept' => 'text/plain,application/json', |
| 1144 | 1144 | ]; |
@@ -26,8 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * @generated This file is generated, please do not edit |
| 28 | 28 | */ |
| 29 | -class Cat extends AbstractEndpoint |
|
| 30 | -{ |
|
| 29 | +class Cat extends AbstractEndpoint { |
|
| 31 | 30 | /** |
| 32 | 31 | * Shows information about currently configured aliases to indices including filter and routing infos. |
| 33 | 32 | * |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | public function deleteAutoFollowPattern(array $params = []) |
| 53 | 53 | { |
| 54 | 54 | $this->checkRequiredParameters(['name'], $params); |
| 55 | - $url = '/_ccr/auto_follow/' . $this->encode($params['name']); |
|
| 55 | + $url = '/_ccr/auto_follow/'.$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,11 +88,11 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | public function follow(array $params = []) |
| 90 | 90 | { |
| 91 | - $this->checkRequiredParameters(['index','body'], $params); |
|
| 92 | - $url = '/' . $this->encode($params['index']) . '/_ccr/follow'; |
|
| 91 | + $this->checkRequiredParameters(['index', 'body'], $params); |
|
| 92 | + $url = '/'.$this->encode($params['index']).'/_ccr/follow'; |
|
| 93 | 93 | $method = 'PUT'; |
| 94 | 94 | |
| 95 | - $url = $this->addQueryString($url, $params, ['wait_for_active_shards','pretty','human','error_trace','source','filter_path']); |
|
| 95 | + $url = $this->addQueryString($url, $params, ['wait_for_active_shards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 96 | 96 | $headers = [ |
| 97 | 97 | 'Accept' => 'application/json', |
| 98 | 98 | 'Content-Type' => 'application/json', |
@@ -125,10 +125,10 @@ discard block |
||
| 125 | 125 | public function followInfo(array $params = []) |
| 126 | 126 | { |
| 127 | 127 | $this->checkRequiredParameters(['index'], $params); |
| 128 | - $url = '/' . $this->encode($params['index']) . '/_ccr/info'; |
|
| 128 | + $url = '/'.$this->encode($params['index']).'/_ccr/info'; |
|
| 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,10 +160,10 @@ discard block |
||
| 160 | 160 | public function followStats(array $params = []) |
| 161 | 161 | { |
| 162 | 162 | $this->checkRequiredParameters(['index'], $params); |
| 163 | - $url = '/' . $this->encode($params['index']) . '/_ccr/stats'; |
|
| 163 | + $url = '/'.$this->encode($params['index']).'/_ccr/stats'; |
|
| 164 | 164 | $method = 'GET'; |
| 165 | 165 | |
| 166 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 166 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 167 | 167 | $headers = [ |
| 168 | 168 | 'Accept' => 'application/json', |
| 169 | 169 | ]; |
@@ -195,11 +195,11 @@ discard block |
||
| 195 | 195 | */ |
| 196 | 196 | public function forgetFollower(array $params = []) |
| 197 | 197 | { |
| 198 | - $this->checkRequiredParameters(['index','body'], $params); |
|
| 199 | - $url = '/' . $this->encode($params['index']) . '/_ccr/forget_follower'; |
|
| 198 | + $this->checkRequiredParameters(['index', 'body'], $params); |
|
| 199 | + $url = '/'.$this->encode($params['index']).'/_ccr/forget_follower'; |
|
| 200 | 200 | $method = 'POST'; |
| 201 | 201 | |
| 202 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 202 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 203 | 203 | $headers = [ |
| 204 | 204 | 'Accept' => 'application/json', |
| 205 | 205 | 'Content-Type' => 'application/json', |
@@ -231,13 +231,13 @@ discard block |
||
| 231 | 231 | public function getAutoFollowPattern(array $params = []) |
| 232 | 232 | { |
| 233 | 233 | if (isset($params['name'])) { |
| 234 | - $url = '/_ccr/auto_follow/' . $this->encode($params['name']); |
|
| 234 | + $url = '/_ccr/auto_follow/'.$this->encode($params['name']); |
|
| 235 | 235 | $method = 'GET'; |
| 236 | 236 | } else { |
| 237 | 237 | $url = '/_ccr/auto_follow'; |
| 238 | 238 | $method = 'GET'; |
| 239 | 239 | } |
| 240 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 240 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 241 | 241 | $headers = [ |
| 242 | 242 | 'Accept' => 'application/json', |
| 243 | 243 | ]; |
@@ -269,10 +269,10 @@ discard block |
||
| 269 | 269 | public function pauseAutoFollowPattern(array $params = []) |
| 270 | 270 | { |
| 271 | 271 | $this->checkRequiredParameters(['name'], $params); |
| 272 | - $url = '/_ccr/auto_follow/' . $this->encode($params['name']) . '/pause'; |
|
| 272 | + $url = '/_ccr/auto_follow/'.$this->encode($params['name']).'/pause'; |
|
| 273 | 273 | $method = 'POST'; |
| 274 | 274 | |
| 275 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 275 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 276 | 276 | $headers = [ |
| 277 | 277 | 'Accept' => 'application/json', |
| 278 | 278 | ]; |
@@ -304,10 +304,10 @@ discard block |
||
| 304 | 304 | public function pauseFollow(array $params = []) |
| 305 | 305 | { |
| 306 | 306 | $this->checkRequiredParameters(['index'], $params); |
| 307 | - $url = '/' . $this->encode($params['index']) . '/_ccr/pause_follow'; |
|
| 307 | + $url = '/'.$this->encode($params['index']).'/_ccr/pause_follow'; |
|
| 308 | 308 | $method = 'POST'; |
| 309 | 309 | |
| 310 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 310 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 311 | 311 | $headers = [ |
| 312 | 312 | 'Accept' => 'application/json', |
| 313 | 313 | ]; |
@@ -339,11 +339,11 @@ discard block |
||
| 339 | 339 | */ |
| 340 | 340 | public function putAutoFollowPattern(array $params = []) |
| 341 | 341 | { |
| 342 | - $this->checkRequiredParameters(['name','body'], $params); |
|
| 343 | - $url = '/_ccr/auto_follow/' . $this->encode($params['name']); |
|
| 342 | + $this->checkRequiredParameters(['name', 'body'], $params); |
|
| 343 | + $url = '/_ccr/auto_follow/'.$this->encode($params['name']); |
|
| 344 | 344 | $method = 'PUT'; |
| 345 | 345 | |
| 346 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 346 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 347 | 347 | $headers = [ |
| 348 | 348 | 'Accept' => 'application/json', |
| 349 | 349 | 'Content-Type' => 'application/json', |
@@ -376,10 +376,10 @@ discard block |
||
| 376 | 376 | public function resumeAutoFollowPattern(array $params = []) |
| 377 | 377 | { |
| 378 | 378 | $this->checkRequiredParameters(['name'], $params); |
| 379 | - $url = '/_ccr/auto_follow/' . $this->encode($params['name']) . '/resume'; |
|
| 379 | + $url = '/_ccr/auto_follow/'.$this->encode($params['name']).'/resume'; |
|
| 380 | 380 | $method = 'POST'; |
| 381 | 381 | |
| 382 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 382 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 383 | 383 | $headers = [ |
| 384 | 384 | 'Accept' => 'application/json', |
| 385 | 385 | ]; |
@@ -412,10 +412,10 @@ discard block |
||
| 412 | 412 | public function resumeFollow(array $params = []) |
| 413 | 413 | { |
| 414 | 414 | $this->checkRequiredParameters(['index'], $params); |
| 415 | - $url = '/' . $this->encode($params['index']) . '/_ccr/resume_follow'; |
|
| 415 | + $url = '/'.$this->encode($params['index']).'/_ccr/resume_follow'; |
|
| 416 | 416 | $method = 'POST'; |
| 417 | 417 | |
| 418 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 418 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 419 | 419 | $headers = [ |
| 420 | 420 | 'Accept' => 'application/json', |
| 421 | 421 | 'Content-Type' => 'application/json', |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | $url = '/_ccr/stats'; |
| 449 | 449 | $method = 'GET'; |
| 450 | 450 | |
| 451 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 451 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 452 | 452 | $headers = [ |
| 453 | 453 | 'Accept' => 'application/json', |
| 454 | 454 | ]; |
@@ -480,10 +480,10 @@ discard block |
||
| 480 | 480 | public function unfollow(array $params = []) |
| 481 | 481 | { |
| 482 | 482 | $this->checkRequiredParameters(['index'], $params); |
| 483 | - $url = '/' . $this->encode($params['index']) . '/_ccr/unfollow'; |
|
| 483 | + $url = '/'.$this->encode($params['index']).'/_ccr/unfollow'; |
|
| 484 | 484 | $method = 'POST'; |
| 485 | 485 | |
| 486 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 486 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 487 | 487 | $headers = [ |
| 488 | 488 | 'Accept' => 'application/json', |
| 489 | 489 | ]; |
@@ -26,8 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * @generated This file is generated, please do not edit |
| 28 | 28 | */ |
| 29 | -class Ccr extends AbstractEndpoint |
|
| 30 | -{ |
|
| 29 | +class Ccr extends AbstractEndpoint { |
|
| 31 | 30 | /** |
| 32 | 31 | * Deletes auto-follow patterns. |
| 33 | 32 | * |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | public function deleteAutoscalingPolicy(array $params = []) |
| 53 | 53 | { |
| 54 | 54 | $this->checkRequiredParameters(['name'], $params); |
| 55 | - $url = '/_autoscaling/policy/' . $this->encode($params['name']); |
|
| 55 | + $url = '/_autoscaling/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 | ]; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $url = '/_autoscaling/capacity'; |
| 88 | 88 | $method = 'GET'; |
| 89 | 89 | |
| 90 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 90 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 91 | 91 | $headers = [ |
| 92 | 92 | 'Accept' => 'application/json', |
| 93 | 93 | ]; |
@@ -119,10 +119,10 @@ discard block |
||
| 119 | 119 | public function getAutoscalingPolicy(array $params = []) |
| 120 | 120 | { |
| 121 | 121 | $this->checkRequiredParameters(['name'], $params); |
| 122 | - $url = '/_autoscaling/policy/' . $this->encode($params['name']); |
|
| 122 | + $url = '/_autoscaling/policy/'.$this->encode($params['name']); |
|
| 123 | 123 | $method = 'GET'; |
| 124 | 124 | |
| 125 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 125 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 126 | 126 | $headers = [ |
| 127 | 127 | 'Accept' => 'application/json', |
| 128 | 128 | ]; |
@@ -154,11 +154,11 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | public function putAutoscalingPolicy(array $params = []) |
| 156 | 156 | { |
| 157 | - $this->checkRequiredParameters(['name','body'], $params); |
|
| 158 | - $url = '/_autoscaling/policy/' . $this->encode($params['name']); |
|
| 157 | + $this->checkRequiredParameters(['name', 'body'], $params); |
|
| 158 | + $url = '/_autoscaling/policy/'.$this->encode($params['name']); |
|
| 159 | 159 | $method = 'PUT'; |
| 160 | 160 | |
| 161 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
| 161 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
| 162 | 162 | $headers = [ |
| 163 | 163 | 'Accept' => 'application/json', |
| 164 | 164 | '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 Autoscaling extends AbstractEndpoint |
|
| 30 | -{ |
|
| 29 | +class Autoscaling extends AbstractEndpoint { |
|
| 31 | 30 | /** |
| 32 | 31 | * Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. |
| 33 | 32 | * |