index ?? null; if (isset($index)) { return "/$index/_ilm/remove"; } throw new RuntimeException('Missing parameter for the endpoint ilm.remove_policy'); } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'POST'; } }