| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: | |
| 16: | |
| 17: | |
| 18: | |
| 19: | |
| 20: | |
| 21: | |
| 22: | namespace OpenSearch\Endpoints\Cat; |
| 23: | |
| 24: | use OpenSearch\Endpoints\AbstractEndpoint; |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: | class Nodes extends AbstractEndpoint |
| 30: | { |
| 31: | public function getURI(): string |
| 32: | { |
| 33: | return '/_cat/nodes'; |
| 34: | } |
| 35: | |
| 36: | public function getParamWhitelist(): array |
| 37: | { |
| 38: | return [ |
| 39: | 'bytes', |
| 40: | 'cluster_manager_timeout', |
| 41: | 'format', |
| 42: | 'full_id', |
| 43: | 'h', |
| 44: | 'help', |
| 45: | 'local', |
| 46: | 'master_timeout', |
| 47: | 's', |
| 48: | 'time', |
| 49: | 'v', |
| 50: | 'pretty', |
| 51: | 'human', |
| 52: | 'error_trace', |
| 53: | 'source', |
| 54: | 'filter_path' |
| 55: | ]; |
| 56: | } |
| 57: | |
| 58: | public function getMethod(): string |
| 59: | { |
| 60: | return 'GET'; |
| 61: | } |
| 62: | |
| 63: | protected function getParamDeprecation(): array |
| 64: | { |
| 65: | return ['master_timeout' => 'cluster_manager_timeout']; |
| 66: | } |
| 67: | } |
| 68: | |