id ?? null; if (isset($id)) { return "/_ingest/pipeline/$id"; } throw new RuntimeException('Missing parameter for the endpoint ingest.put_pipeline'); } public function getParamWhitelist(): array { return [ 'master_timeout', 'timeout' ]; } public function getMethod(): string { return 'PUT'; } public function setBody($body): PutPipeline { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } }