public function edit($sshKeyId, array $parameters)
    {
        if (!array_key_exists('ssh_pub_key', $parameters) || !is_string($parameters['ssh_pub_key'])) {
            throw new \InvalidArgumentException('You need to provide the new public SSH Key.');
        }

        return $this->processQuery($this->buildQuery($sshKeyId, SSHKeysActions::ACTION_EDIT, $parameters));
    }
public function edit($sshKeyId, array $parameters)
    {
        if (!array_key_exists('ssh_pub_key', $parameters) || !is_string($parameters['ssh_pub_key'])) {
            throw new \InvalidArgumentException('You need to provide the new public SSH Key.');
        }

        return $this->processQuery($this->buildQuery($sshKeyId, SSHKeysActions::ACTION_EDIT, $parameters));
    }
public function edit ( $ sshKeyId , array $ parameters ) { if ( ! array_key_exists ( 'ssh_pub_key' , $ parameters ) || ! is_string ( $ parameters [ 'ssh_pub_key' ] ) ) { throw new \ InvalidArgumentException ( 'You need to provide the new public SSH Key.' ) ; } return $ this -> processQuery ( $ this -> buildQuery ( $ sshKeyId , SSHKeysActions :: ACTION_EDIT , $ parameters ) ) ; }
Edits an existing public SSH key in your account.
The array requires ssh_pub_key key.

@param integer $sshKeyId   The id of the SSH key.
@param array   $parameters An array of parameters.

@return StdClass

@throws \InvalidArgumentException
Edits an existing public SSH key in your account . The array requires ssh_pub_key key .