Example #1
0
 /**
  * Deletes security group
  *
  * @param DeleteSecurityGroupData $requestData Request data object
  * @return ResponseDeleteData
  */
 public function deleteSecurityGroup(DeleteSecurityGroupData $requestData = null)
 {
     $result = null;
     $args = array();
     if ($requestData !== null) {
         $args = $requestData->toArray();
     }
     $response = $this->getClient()->call('deleteSecurityGroup', $args);
     if ($response->hasError() === false) {
         $resultObject = $response->getResult();
         if (!empty($resultObject)) {
             $result = $this->_loadUpdateData($resultObject);
         }
     }
     return $result;
 }
Example #2
0
 /**
  * Deletes security group
  *
  * @param DeleteSecurityGroupData|array $request Request data object
  * @return ResponseDeleteData
  */
 public function delete($request = null)
 {
     if ($request !== null && !$request instanceof DeleteSecurityGroupData) {
         $request = DeleteSecurityGroupData::initArray($request);
     }
     return $this->getApiHandler()->deleteSecurityGroup($request);
 }