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/_upgrade"; } throw new RuntimeException('Missing parameter for the endpoint ml.upgrade_job_snapshot'); } public function getParamWhitelist(): array { return [ 'timeout', 'wait_for_completion' ]; } public function getMethod(): string { return 'POST'; } public function setJobId($job_id): UpgradeJobSnapshot { if (isset($job_id) !== true) { return $this; } $this->job_id = $job_id; return $this; } public function setSnapshotId($snapshot_id): UpgradeJobSnapshot { if (isset($snapshot_id) !== true) { return $this; } $this->snapshot_id = $snapshot_id; return $this; } }