index_uuid ?? null; if (isset($index_uuid)) { return "/_dangling/$index_uuid"; } throw new RuntimeException('Missing parameter for the endpoint dangling_indices.import_dangling_index'); } public function getParamWhitelist(): array { return [ 'accept_data_loss', 'timeout', 'master_timeout' ]; } public function getMethod(): string { return 'POST'; } public function setIndexUuid($index_uuid): ImportDanglingIndex { if (isset($index_uuid) !== true) { return $this; } $this->index_uuid = $index_uuid; return $this; } }