Exemplo n.º 1
0
 /**
  * Deletes a keypair by name
  *
  * @param UpdateSshKeyData|array $request Requesy data object
  * @return ResponseDeleteData
  */
 public function delete($request)
 {
     if ($request !== null && !$request instanceof UpdateSshKeyData) {
         $request = UpdateSshKeyData::initArray($request);
     }
     return $this->getApiHandler()->deleteSSHKeyPair($request);
 }
Exemplo n.º 2
0
 /**
  * Deletes a keypair by name
  *
  * @param UpdateSshKeyData $requestData Requesy data object
  * @return ResponseDeleteData
  */
 public function deleteSSHKeyPair(UpdateSshKeyData $requestData)
 {
     $result = null;
     $response = $this->getClient()->call('deleteSSHKeyPair', $requestData->toArray());
     if ($response->hasError() === false) {
         $resultObject = $response->getResult();
         if (!empty($resultObject)) {
             $result = $this->_loadUpdateData($resultObject);
         }
     }
     return $result;
 }