function update($storageProfileId, Kaltura_Client_Type_StorageProfile $storageProfile) { $kparams = array(); $this->client->addParam($kparams, "storageProfileId", $storageProfileId); $this->client->addParam($kparams, "storageProfile", $storageProfile->toParams()); $this->client->queueServiceActionCall("storageprofile", "update", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_StorageProfile"); return $resultObject; }
function update($storageProfileId, Kaltura_Client_Type_StorageProfile $storageProfile) { $kparams = array(); $this->client->addParam($kparams, "storageProfileId", $storageProfileId); $this->client->addParam($kparams, "storageProfile", $storageProfile->toParams()); $this->client->queueServiceActionCall("storageprofile", "update", "KalturaStorageProfile", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = Kaltura_Client_ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaStorageProfile"); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_StorageProfile"); return $resultObject; }