Esempio n. 1
0
 /**
  * Restores an archived copy of an object back into Amazon S3
  *
  * @param string $bucket
  * @param string $key
  * @param int    $days
  *
  * @internal param array $args
  *
  * @return mixed
  */
 public function restoreObject($bucket, $key, $days)
 {
     $params = ['Bucket' => $bucket, 'Key' => $key, 'Days' => $days];
     return $this->instance->restoreObject($params);
 }
Esempio n. 2
0
 /**
  * restoreObject
  *
  * @param string  $key
  * @param integer $days
  *
  * @return \Guzzle\Service\Resource\Model
  */
 public function restoreObject($key, $days)
 {
     $params = ['Bucket' => $this->name, 'Key' => $key, 'Days' => $days];
     return $this->client->restoreObject($params);
 }