index ?? null; if (isset($index)) { return "/$index/_disk_usage"; } throw new RuntimeException('Missing parameter for the endpoint indices.disk_usage'); } public function getParamWhitelist(): array { return [ 'run_expensive_tasks', 'flush', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards' ]; } public function getMethod(): string { return 'POST'; } }