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