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; }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->filesPermissionInS3 = (string) $xml->filesPermissionInS3; }
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; }