job_id ?? null; $snapshot_id = $this->snapshot_id ?? null; if (isset($job_id) && isset($snapshot_id)) { return "/_ml/anomaly_detectors/$job_id/model_snapshots/$snapshot_id/_update"; } throw new RuntimeException('Missing parameter for the endpoint ml.update_model_snapshot'); } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'POST'; } public function setBody($body): UpdateModelSnapshot { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setJobId($job_id): UpdateModelSnapshot { if (isset($job_id) !== true) { return $this; } $this->job_id = $job_id; return $this; } public function setSnapshotId($snapshot_id): UpdateModelSnapshot { if (isset($snapshot_id) !== true) { return $this; } $this->snapshot_id = $snapshot_id; return $this; } }