* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://elastic.co */ class Get extends AbstractEndpoint { /** * @throws \Elasticsearch\Common\Exceptions\RuntimeException * @return string */ public function getURI() { if (isset($this->id) !== true) { return '/_ingest/pipeline/*'; } $id = $this->id; return "/_ingest/pipeline/$id"; } /** * @return string[] */ public function getParamWhitelist() { return array( 'master_timeout' ); } /** * @return string */ public function getMethod() { return 'GET'; } }