/
Get.php
51 lines (44 loc) · 980 Bytes
/
Get.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
namespace Elasticsearch\Endpoints\Ingest\Pipeline;
use Elasticsearch\Common\Exceptions;
use Elasticsearch\Endpoints\AbstractEndpoint;
/**
* Class Get
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Ingest
* @author Zachary Tong <zach@elastic.co>
* @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';
}
}