public function restore($dropletId, array $parameters)
    {
        if (!array_key_exists('image_id', $parameters) || !is_int($parameters['image_id'])) {
            throw new \InvalidArgumentException('You need to provide the "image_id" to restore.');
        }

        return $this->processQuery($this->buildQuery($dropletId, DropletsActions::ACTION_RESTORE, $parameters));
    }
public function restore($dropletId, array $parameters)
    {
        if (!array_key_exists('image_id', $parameters) || !is_int($parameters['image_id'])) {
            throw new \InvalidArgumentException('You need to provide the "image_id" to restore.');
        }

        return $this->processQuery($this->buildQuery($dropletId, DropletsActions::ACTION_RESTORE, $parameters));
    }
public function restore ( $ dropletId , array $ parameters ) { if ( ! array_key_exists ( 'image_id' , $ parameters ) || ! is_int ( $ parameters [ 'image_id' ] ) ) { throw new \ InvalidArgumentException ( 'You need to provide the "image_id" to restore.' ) ; } return $ this -> processQuery ( $ this -> buildQuery ( $ dropletId , DropletsActions :: ACTION_RESTORE , $ parameters ) ) ; }
Restores a droplet with a previous image or snapshot.
This will be a mirror copy of the image or snapshot to your droplet.
Be sure you have backed up any necessary information prior to restore.
The image_id is required.

@param integer $dropletId  The id of the droplet.
@param array   $parameters An array of parameters.

@return StdClass

@throws \InvalidArgumentException
Restores a droplet with a previous image or snapshot . This will be a mirror copy of the image or snapshot to your droplet . Be sure you have backed up any necessary information prior to restore . The image_id is required .