/** * Update storage profile by id * * * @return \Kaltura\Client\Type\StorageProfile */ 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; }