diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy index ece0d0c840..37860ad6eb 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy @@ -299,4 +299,175 @@ class OpsmxSsdController { } return ResponseEntity.status(response.getStatus()).build() } + + @ApiOperation(value = "Delete Endpoint for ssd services") + @RequestMapping(value = "/{version}/{type}", method = RequestMethod.DELETE) + Object deleteSsdResponse(@PathVariable("version") String version, + @PathVariable("type") String type, + @RequestParam(value = "account", required = false) String account, + @RequestParam(value = "appId", required = false) String appId, + @RequestParam(value = "image", required = false) String image, + @RequestParam(value = "imageTag", required = false) String imageTag, + @RequestParam(value = "stage", required = false) String stage, + @RequestParam(value = "deployedAt", required = false) String deployedAt, + @RequestParam(value = "appName", required = false) String appName, + @RequestParam(value = "pageNo", required = false) Integer pageNo, + @RequestParam(value = "pageLimit", required = false) Integer pageLimit, + @RequestParam(value = "sortBy", required = false) String sortBy, + @RequestParam(value = "sortOrder", required = false) String sortOrder, + @RequestParam(value = "search", required = false) String search, + @RequestParam(value = "noOfDays", required = false) Integer noOfDays, + @RequestParam(value = "policy", required = false) String policy, + @RequestParam(value = "typeList", required = false) String typeList, + @RequestParam(value = "alertName", required = false) String alertName, + @RequestParam(value = "id", required = false) String id, + @RequestParam(value = "startTime", required = false) String startTime, + @RequestParam(value = "endTime", required = false) String endTime, + @RequestParam(value = "severity", required = false) String severity, + @RequestParam(value = "scope", required = false) String scope, + @RequestParam(value = "current", required = false) String current, + @RequestParam(value = "tag", required = false) String tag) { + return opsMxSsdService.deleteSddResponse1(version, type, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, policy, typeList, alertName, id, startTime, endTime, severity, scope, current, tag) + } + + @ApiOperation(value = "Delete Endpoint for ssd services") + @RequestMapping(value = "/{version}/{type}/{source}", method = RequestMethod.DELETE) + Object deleteSsdResponse1(@PathVariable("version") String version, + @PathVariable("type") String type, + @PathVariable("source") String source, + @RequestParam(value = "account", required = false) String account, + @RequestParam(value = "appId", required = false) String appId, + @RequestParam(value = "image", required = false) String image, + @RequestParam(value = "imageTag", required = false) String imageTag, + @RequestParam(value = "stage", required = false) String stage, + @RequestParam(value = "deployedAt", required = false) String deployedAt, + @RequestParam(value = "appName", required = false) String appName, + @RequestParam(value = "pageNo", required = false) Integer pageNo, + @RequestParam(value = "pageLimit", required = false) Integer pageLimit, + @RequestParam(value = "sortBy", required = false) String sortBy, + @RequestParam(value = "sortOrder", required = false) String sortOrder, + @RequestParam(value = "search", required = false) String search, + @RequestParam(value = "noOfDays", required = false) Integer noOfDays, + @RequestParam(value = "alertName", required = false) String alertName, + @RequestParam(value = "riskStatus", required = false) String riskStatus, + @RequestParam(value = "id", required = false) String id, + @RequestParam(value = "Vulnerability", required = false) String Vulnerability, + @RequestParam(value = "Component", required = false) String Component, + @RequestParam(value = "ComponentVersion", required = false) String ComponentVersion, + @RequestParam(value = "Image", required = false) String Image, + @RequestParam(value = "ImageVersion", required = false) String ImageVersion, + @RequestParam(value = "service", required = false) String service, + @RequestParam(value = "scope", required = false) String scope, + @RequestParam(value = "name", required = false) String name, + @RequestParam(value = "value", required = false) String value + ) { + return opsMxSsdService.deleteSddResponse2(version, type, source, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, alertName, riskStatus, id, Vulnerability, Component, ComponentVersion, Image, ImageVersion, service, scope, name, value) + } + + @ApiOperation(value = "Delete Endpoint for ssd services") + @RequestMapping(value = "/{version}/{type}/{source}/{source1}", method = RequestMethod.DELETE) + Object deleteSsdResponse2(@PathVariable("version") String version, + @PathVariable("type") String type, + @PathVariable("source") String source, + @PathVariable("source1") String source1, + @RequestParam(value = "account", required = false) String account, + @RequestParam(value = "appId", required = false) Integer appId, + @RequestParam(value = "image", required = false) String image, + @RequestParam(value = "appName", required = false) String appName, + @RequestParam(value = "noOfDays", required = false) Integer noOfDays, + @RequestParam(value = "pageNo", required = false) Integer pageNo, + @RequestParam(value = "pageLimit", required = false) Integer pageLimit, + @RequestParam(value = "kind", required = false) String kind, + @RequestParam(value = "search", required = false) String search, + @RequestParam(value = "service", required = false) String service, + @RequestParam(value = "sortBy", required = false) String sortBy, + @RequestParam(value = "sortOrder", required = false) String sortOrder, + @RequestParam(value = "id", required = false) String id, + @RequestParam(value = "dbomType", required = false) String dbomType) { + return opsMxSsdService.deleteSddResponse3(version, type, source, source1, account, appId, image, appName, noOfDays, pageNo, pageLimit, kind, search, service, sortBy, sortOrder, id, dbomType) + } + + @ApiOperation(value = "Delete Endpoint for ssd services") + @RequestMapping(value = "/{version}/{type}/{source}/{source1}/{source2}", method = RequestMethod.DELETE) + Object deleteSsdResponse3(@PathVariable("version") String version, + @PathVariable("type") String type, + @PathVariable("source") String source, + @PathVariable("source1") String source1, + @PathVariable("source2") String source2, + @RequestParam(value = "account", required = false) String account, + @RequestParam(value = "appId", required = false) Integer appId, + @RequestParam(value = "image", required = false) String image, + @RequestParam(value = "imageTag", required = false) String imageTag, + @RequestParam(value = "stage", required = false) String stage, + @RequestParam(value = "deployedAt", required = false) String deployedAt, + @RequestParam(value = "appName", required = false) String appName, + @RequestParam(value = "pageNo", required = false) Integer pageNo, + @RequestParam(value = "pageLimit", required = false) Integer pageLimit, + @RequestParam(value = "sortBy", required = false) String sortBy, + @RequestParam(value = "sortOrder", required = false) String sortOrder, + @RequestParam(value = "search", required = false) String search, + @RequestParam(value = "noOfDays", required = false) Integer noOfDays, + @RequestParam(value = "id", required = false) String id, + @RequestParam(value = "fromImage", required = false) String fromImage, + @RequestParam(value = "toImage", required = false) String toImage, + @RequestParam(value = "fromImageTag", required = false) String fromImageTag, + @RequestParam(value = "toImageTag", required = false) String toImageTag, + @RequestParam(value = "fromAccount", required = false) String fromAccount, + @RequestParam(value = "toAccount", required = false) String toAccount, + @RequestParam(value = "kind", required = false) String kind, + @RequestParam(value = "active", required = false) String active, + @RequestParam(value = "Vulnerability", required = false) String Vulnerability, + @RequestParam(value = "Component", required = false) String Component, + @RequestParam(value = "ComponentVersion", required = false) String ComponentVersion, + @RequestParam(value = "fromApp", required = false) String fromApp, + @RequestParam(value = "service", required = false) String service, + @RequestParam(value = "toApp", required = false) String toApp, + @RequestParam(value = "dbomType", required = false) String dbomType) { + return opsMxSsdService.deleteSddResponse4(version, type, source, source1, source2, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, id, fromImage, toImage, fromImageTag, toImageTag, fromAccount, toAccount, kind, active, Vulnerability, Component, ComponentVersion, fromApp, service, toApp, dbomType) + } + + @ApiOperation(value = "Delete Endpoint for ssd services") + @RequestMapping(value = "/{version}/{type}/{source}/{source1}/{source2}/{source3}", method = RequestMethod.DELETE) + Object deleteSsdResponse4(@PathVariable("version") String version, + @PathVariable("type") String type, + @PathVariable("source") String source, + @PathVariable("source1") String source1, + @PathVariable("source2") String source2, + @PathVariable("source3") String source3, + @RequestParam(value = "appId", required = false) Integer appId, + @RequestParam(value = "image", required = false) String image, + @RequestParam(value = "appName", required = false) String appName) { + return opsMxSsdService.deleteSddResponse5(version, type, source, source1, source2, source3, appId, image, appName) + } + + @ApiOperation(value = "Delete Endpoint for ssd services") + @RequestMapping(value = "/{version}/{type}/{source}/{source1}/{source2}/{source3}/{source4}", method = RequestMethod.DELETE) + Object deleteSsdResponse5(@PathVariable("version") String version, + @PathVariable("type") String type, + @PathVariable("source") String source, + @PathVariable("source1") String source1, + @PathVariable("source2") String source2, + @PathVariable("source3") String source3, + @PathVariable("source4") String source4, + @RequestParam(value = "appId", required = false) Integer appId, + @RequestParam(value = "image", required = false) String image, + @RequestParam(value = "appName", required = false) String appName) { + return opsMxSsdService.deleteSddResponse6(version, type, source, source1, source2, source3, source4, appId, image, appName) + } + + @ApiOperation(value = "Endpoint for ssd services") + @RequestMapping(value = "/{version}/{type}/{source}/{source1}/{source2}/{source3}/{source4}/{source5}", method = RequestMethod.DELETE) + Object deleteSsdResponse6(@PathVariable("version") String version, + @PathVariable("type") String type, + @PathVariable("source") String source, + @PathVariable("source1") String source1, + @PathVariable("source2") String source2, + @PathVariable("source3") String source3, + @PathVariable("source4") String source4, + @PathVariable("source5") String source5, + @RequestParam(value = "appId", required = false) Integer appId, + @RequestParam(value = "image", required = false) String image, + @RequestParam(value = "appName", required = false) String appName) { + return opsMxSsdService.deleteSddResponse7(version, type, source, source1, source2, source3, source4, source5, appId, image, appName) + } } diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy index 329e77d9b9..0b64e175ab 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy @@ -19,6 +19,7 @@ package com.netflix.spinnaker.gate.services.internal import org.springframework.web.bind.annotation.RequestParam import retrofit.client.Response import retrofit.http.Body +import retrofit.http.DELETE import retrofit.http.GET import retrofit.http.POST import retrofit.http.Path @@ -213,4 +214,154 @@ interface OpsmxSsdService { @Query("account") String account, @Query("scoreCardName") String scoreCardName, @Query("semgrep") String semgrep) + + + @DELETE("/ssdservice/{version}/{type}") + Object deleteSddResponse1(@Path('version') String version, + @Path('type') String type, + @Query("account") String account, + @Query("appId") String appId, + @Query("image") String image, + @Query("imageTag") String imageTag, + @Query('stage') String stage, + @Query("deployedAt") String deployedAt, + @Query("appName") String appName, + @Query("pageNo") Integer pageNo, + @Query("pageLimit") Integer pageLimit, + @Query("sortBy") String sortBy, + @Query("sortOrder") String sortOrder, + @Query("search") String search, + @Query("noOfDays") Integer noOfDays, + @Query("policy") String policy, + @Query("typeList") String typeList, + @Query("alertName") String alertName, + @Query("id") String id, + @Query("startTime") String startTime, + @Query("endTime") String endTime, + @Query("severity") String severity, + @Query("scope") String scope, + @Query("current") String current, + @Query("tag") String tag) + + @DELETE("/ssdservice/{version}/{type}/{source}") + Object deleteSddResponse2(@Path('version') String version, + @Path('type') String type, + @Path('source') String source, + @Query("account") String account, + @Query("appId") String appId, + @Query("image") String image, + @Query("imageTag") String imageTag, + @Query("stage") String stage, + @Query("deployedAt") String deployedAt, + @Query("appName") String appName, + @Query("pageNo") Integer pageNo, + @Query("pageLimit") Integer pageLimit, + @Query("sortBy") String sortBy, + @Query("sortOrder") String sortOrder, + @Query("search") String search, + @Query("noOfDays") Integer noOfDays, + @Query("alertName") String alertName, + @Query("riskStatus") String riskStatus, + @Query("id") String id, + @Query("Vulnerability") String Vulnerability, + @Query("Component") String Component, + @Query("ComponentVersion") String ComponentVersion, + @Query("Image") String Image, + @Query("ImageVersion") String ImageVersion, + @Query("service") String service, + @Query("scope") String scope, + @Query("name") String name, + @Query("value") String value) + + @DELETE("/ssdservice/{version}/{type}/{source}/{source1}") + Object deleteSddResponse3(@Path('version') String version, + @Path('type') String type, + @Path('source') String source, + @Path('source1') String source1, + @Query("account") String account, + @Query("appId") Integer appId, + @Query("image") String image, + @Query("appName") String appName, + @Query("noOfDays") Integer noOfDays, + @Query("pageNo") Integer pageNo, + @Query("pageLimit") Integer pageLimit, + @Query("kind") String kind, + @Query("search") String search, + @Query("service") String service, + @Query("sortBy") String sortBy, + @Query("sortOrder") String sortOrder, + @Query("id") String id, + @Query("dbomType") String dbomType) + + @DELETE("/ssdservice/{version}/{type}/{source}/{source1}/{source2}") + Object deleteSddResponse4(@Path('version') String version, + @Path('type') String type, + @Path('source') String source, + @Path('source1') String source1, + @Path('source2') String source2, + @Query("account") String account, + @Query("appId") Integer appId, + @Query("image") String image, + @Query("imageTag") String imageTag, + @Query("stage") String stage, + @Query("deployedAt") String deployedAt, + @Query("appName") String appName, + @Query("pageNo") Integer pageNo, + @Query("pageLimit") Integer pageLimit, + @Query("sortBy") String sortBy, + @Query("sortOrder") String sortOrder, + @Query("search") String search, + @Query("noOfDays") Integer noOfDays, + @Query("id") String id, + @Query("fromImage") String fromImage, + @Query("toImage") String toImage, + @Query("fromImageTag") String fromImageTag, + @Query("toImageTag") String toImageTag, + @Query("fromAccount") String fromAccount, + @Query("toAccount") String toAccount, + @Query("kind") String kind, + @Query("active") String active, + @Query("Vulnerability") String Vulnerability, + @Query("Component") String Component, + @Query("ComponentVersion") String ComponentVersion, + @Query("fromApp") String fromApp, + @Query("service") String service, + @Query("toApp") String toApp, + @Query("dbomType") String dbomType) + + @DELETE("/ssdservice/{version}/{type}/{source}/{source1}/{source2}/{source3}") + Object deleteSddResponse5(@Path('version') String version, + @Path('type') String type, + @Path('source') String source, + @Path('source1') String source1, + @Path('source2') String source2, + @Path('source3') String source3, + @Query("appId") Integer appId, + @Query("image") String image, + @Query("appName") String appName) + + @DELETE("/ssdservice/{version}/{type}/{source}/{source1}/{source2}/{source3}/{source4}") + Object deleteSddResponse6(@Path('version') String version, + @Path('type') String type, + @Path('source') String source, + @Path('source1') String source1, + @Path('source2') String source2, + @Path('source3') String source3, + @Path('source4') String source4, + @Query("appId") Integer appId, + @Query("image") String image, + @Query("appName") String appName) + + @DELETE("/ssdservice/{version}/{type}/{source}/{source1}/{source2}/{source3}/{source4}/{source5}") + Object deleteSddResponse7(@Path('version') String version, + @Path('type') String type, + @Path('source') String source, + @Path('source1') String source1, + @Path('source2') String source2, + @Path('source3') String source3, + @Path('source4') String source4, + @Path('source5') String source5, + @Query("appId") Integer appId, + @Query("image") String image, + @Query("appName") String appName) }