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

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

        return $this->processQuery($this->buildQuery($dropletId, DropletsActions::ACTION_RESIZE, $parameters));
    }
public function resize ( $ dropletId , array $ parameters ) { if ( ! array_key_exists ( 'size_id' , $ parameters ) || ! is_int ( $ parameters [ 'size_id' ] ) ) { throw new \ InvalidArgumentException ( 'You need to provide an integer "size_id".' ) ; } return $ this -> processQuery ( $ this -> buildQuery ( $ dropletId , DropletsActions :: ACTION_RESIZE , $ parameters ) ) ; }
Resizes a specific droplet to a different size.
This will affect the number of processors and memory allocated to the droplet.
The size_id key is required.

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

@return StdClass

@throws \InvalidArgumentException
Resizes a specific droplet to a different size . This will affect the number of processors and memory allocated to the droplet . The size_id key is required .