AlertApi { public SuccessResponse deleteAlert(DeleteAlertRequest params) throws ApiException { String identifier = params.getIdentifier(); String identifierType = params.getIdentifierType().getValue(); String source = params.getSource(); String user = params.getUser(); Object localVarPostBody = null; if (identifier == null) { throw new ApiException(400, "Missing the required parameter 'identifier' when calling deleteAlert"); } String localVarPath = "/v2/alerts/{identifier}" .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "identifierType", identifierType)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "source", source)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "user", user)); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[]{"GenieKey"}; GenericType<SuccessResponse> localVarReturnType = new GenericType<SuccessResponse>() { }; return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } AlertApi();  AlertApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); SuccessResponse acknowledgeAlert(String identifier, String identifierType, AcknowledgeAlertRequest body); SuccessResponse addDetails(String identifier, AddAlertDetailsRequest body, String identifierType); SuccessResponse addNote(String identifier, AddAlertNoteRequest body, String identifierType); AddSavedSearchResponse addSavedSearches(AddSavedSearchRequest body); SuccessResponse addTags(String identifier, AddAlertTagsRequest body, String identifierType); SuccessResponse addTeam(String identifier, AddAlertTeamRequest body, String identifierType); SuccessResponse assignAlert(String identifier, AssignAlertRequest body, String identifierType); SuccessResponse closeAlert(String identifier, String identifierType, CloseAlertRequest body); SuccessResponse createAlert(CreateAlertRequest body); SuccessResponse deleteAlert(DeleteAlertRequest params); SuccessResponse deleteAttachment(DeleteAlertAttachmentRequest params); SuccessResponse deleteDetails(DeleteAlertDetailsRequest params); SuccessResponse deleteSavedSearch(String identifier, String identifierType); SuccessResponse deleteTags(DeleteAlertTagsRequest params); SuccessResponse escalateAlert(String identifier, EscalateAlertToNextRequest body, String identifierType); SuccessResponse executeCustomAction(String identifier, String actionName, String identifierType, ExecuteCustomAlertActionRequest body); GetAlertResponse getAlert(String identifier, String identifierType); GetAlertAttachmentResponse getAttachment(String identifier, Long attachmentId, String alertIdentifierType); GetRequestStatusResponse getRequestStatus(String requestId); GetSavedSearchResponse getSavedSearch(String identifier, String identifierType); ListAlertsResponse listAlerts(ListAlertsRequest params); ListAlertAttachmentResponse listAttachments(String identifier, String alertIdentifierType); ListAlertLogsResponse listLogs(ListAlertLogsRequest params); ListAlertNotesResponse listNotes(ListAlertNotesRequest params); ListAlertRecipientsResponse listRecipients(String identifier, String identifierType); ListSavedSearchResponse listSavedSearches(); SuccessResponse snoozeAlert(String identifier, SnoozeAlertRequest body, String identifierType); SuccessResponse unAcknowledgeAlert(String identifier, String identifierType, UnAcknowledgeAlertRequest body);  }
@Test public void deleteAlertTest() throws ApiException { DeleteAlertRequest params = null; SuccessResponse response = api.deleteAlert(params); }