diff --git a/src/Elasticsearch/Endpoints/Indices/Aliases/Get.php b/src/Elasticsearch/Endpoints/Indices/Aliases/Get.php deleted file mode 100644 index 4e9287fdc..000000000 --- a/src/Elasticsearch/Endpoints/Indices/Aliases/Get.php +++ /dev/null @@ -1,75 +0,0 @@ - - * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 - * @link http://elastic.co - */ -class Get extends AbstractEndpoint -{ - // A comma-separated list of alias names to filter - private $name; - - /** - * @param $name - * - * @return $this - */ - public function setName($name) - { - if (isset($name) !== true) { - return $this; - } - - $this->name = $name; - - return $this; - } - - /** - * @return string - */ - public function getURI() - { - $index = $this->index; - $name = $this->name; - $uri = "/_aliases"; - - if (isset($index) === true && isset($name) === true) { - $uri = "/$index/_aliases/$name"; - } elseif (isset($name) === true) { - $uri = "/_aliases/$name"; - } elseif (isset($index) === true) { - $uri = "/$index/_aliases"; - } - - return $uri; - } - - /** - * @return string[] - */ - public function getParamWhitelist() - { - return array( - 'timeout', - 'local', - ); - } - - /** - * @return string - */ - public function getMethod() - { - return 'GET'; - } -} diff --git a/src/Elasticsearch/Namespaces/IndicesNamespace.php b/src/Elasticsearch/Namespaces/IndicesNamespace.php index ea20f2c2d..44d469056 100644 --- a/src/Elasticsearch/Namespaces/IndicesNamespace.php +++ b/src/Elasticsearch/Namespaces/IndicesNamespace.php @@ -914,8 +914,8 @@ public function getAliases($params = array()) /** @var callback $endpointBuilder */ $endpointBuilder = $this->endpoints; - /** @var \Elasticsearch\Endpoints\Indices\Aliases\Get $endpoint */ - $endpoint = $endpointBuilder('Indices\Aliases\Get'); + /** @var \Elasticsearch\Endpoints\Indices\Alias\Get $endpoint */ + $endpoint = $endpointBuilder('Indices\Alias\Get'); $endpoint->setIndex($index) ->setName($name); $endpoint->setParams($params);