function update($id, KalturaThumbAsset $thumbAsset, KalturaContentResource $contentResource = null) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "thumbAsset", $thumbAsset->toParams()); if ($contentResource !== null) { $this->client->addParam($kparams, "contentResource", $contentResource->toParams()); } $this->client->queueServiceActionCall("thumbasset", "update", $kparams); if ($this->client->isMultiRequest()) { return null; } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaThumbAsset"); return $resultObject; }