client->newReq('GET', "/ingest/api/v1/source/{$sourceId}/endpoint/{$endpointId}/transformation"); $res = $this->client->send($request); return IngestEndpointTransformationOut::fromJson($res); } /** * Set or unset the transformation code associated with this ingest endpoint. * * @throws ApiException */ public function patch( string $sourceId, string $endpointId, IngestEndpointTransformationPatch $ingestEndpointTransformationPatch, ): void { $request = $this->client->newReq('PATCH', "/ingest/api/v1/source/{$sourceId}/endpoint/{$endpointId}/transformation"); $request->setBody(json_encode($ingestEndpointTransformationPatch)); $res = $this->client->sendNoResponseBody($request); } }