index ?? null; if (isset($index)) { return "/$index/_fleet/global_checkpoints"; } throw new RuntimeException('Missing parameter for the endpoint fleet.global_checkpoints'); } public function getParamWhitelist(): array { return [ 'wait_for_advance', 'wait_for_index', 'checkpoints', 'timeout' ]; } public function getMethod(): string { return 'GET'; } }