/**
  * Update storage profile by id 
  * 
  * @action update
  * @param int $storageProfileId
  * @param KalturaStorageProfile $storageProfile
  * @return KalturaStorageProfile
  */
 function updateAction($storageProfileId, KalturaStorageProfile $storageProfile)
 {
     $dbStorageProfile = StorageProfilePeer::retrieveByPK($storageProfileId);
     if (!$dbStorageProfile) {
         throw new KalturaAPIException(KalturaErrors::INVALID_OBJECT_ID, $storageProfileId);
     }
     $dbStorageProfile = $storageProfile->toUpdatableObject($dbStorageProfile);
     $dbStorageProfile->save();
     $storageProfile->fromObject($dbStorageProfile);
     return $storageProfile;
 }
 /**
  * Update storage profile by id 
  * 
  * @action update
  * @param int $storageProfileId
  * @param KalturaStorageProfile $storageProfile
  * @return KalturaStorageProfile
  */
 function updateAction($storageProfileId, KalturaStorageProfile $storageProfile)
 {
     $dbStorageProfile = StorageProfilePeer::retrieveByPK($storageProfileId);
     if (!$dbStorageProfile) {
         throw new KalturaAPIException(KalturaErrors::INVALID_OBJECT_ID, $storageProfileId);
     }
     $dbStorageProfile = $storageProfile->toUpdatableObject($dbStorageProfile);
     $dbStorageProfile->save();
     $protocol = $dbStorageProfile->getProtocol();
     $storageProfile = KalturaStorageProfile::getInstanceByType($protocol);
     $storageProfile->fromObject($dbStorageProfile, $this->getResponseProfile());
     return $storageProfile;
 }