@ApiOperation(value="Deletes a tosca topology template",nickname="deleteToscaTemplateByID",notes="",response=String.class,authorizations={
@ApiOperation(value="Deletes a tosca topology template",nickname="deleteToscaTemplateByID",notes="If the topology is provisoned it will delete the provison (Infrastructure). If it is deployed it will delete the deploymet too (Application)",response=String.class,authorizations={
@Authorization(value="auth",scopes={
@Authorization(value="auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template")
,
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@ApiResponse(code=400,message="Invalid ID supplied"),
,
@ApiResponse(code=404,message="ToscaTemplate not found")})
@ApiResponse(code=400,message="Invalid ID supplied")
,
@ApiResponse(code=404,message="ToscaTemplate not found")})
@RequestMapping(value="/tosca_template/{id}",
@RequestMapping(value="/tosca_template/{id}",
method=RequestMethod.DELETE)
method=RequestMethod.DELETE)
ResponseEntity<String>deleteToscaTemplateByID(@ApiParam(value="ID of topology template to return",required=true)@PathVariable("id")Stringid);
ResponseEntity<String>deleteToscaTemplateByID(@ApiParam(value="ID of topology template to return",required=true)@PathVariable("id")Stringid,@ApiParam(value="The node(s) to delete")@Valid@RequestParam(value="node_name",required=false)List<String>nodeName);
@ApiOperation(value="Find topolog template by ID",nickname="getToscaTemplateByID",notes="Returns a single topolog template",response=String.class,authorizations={
@ApiOperation(value="Find topolog template by ID",nickname="getToscaTemplateByID",notes="Returns a single topolog template",response=String.class,authorizations={
@Authorization(value="auth",scopes={
@Authorization(value="auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template")
,
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@ApiResponse(code=400,message="Invalid ID supplied"),
,
@ApiResponse(code=404,message="ToscaTemplate not found"),
@ApiResponse(code=400,message="Invalid ID supplied")
@ApiResponse(code=405,message="Invalid input")})
,
@ApiResponse(code=404,message="ToscaTemplate not found")
,
@ApiResponse(code=405,message="Invalid input")})
@RequestMapping(value="/tosca_template/{id}",
@RequestMapping(value="/tosca_template/{id}",
produces={"text/plain"},
produces={"text/plain"},
method=RequestMethod.GET)
method=RequestMethod.GET)
ResponseEntity<String>getToscaTemplateByID(@ApiParam(value="ID of topolog template to return",required=true)@PathVariable("id")Stringid);
ResponseEntity<String>getToscaTemplateByID(@ApiParam(value="ID of topolog template to return",required=true)@PathVariable("id")Stringid);
@ApiOperation(value="Get all topolog template IDs",nickname="getToscaTemplateIDs",notes="Returns all IDs",response=String.class,responseContainer="List",authorizations={
@ApiOperation(value="Get all topolog template IDs",nickname="getToscaTemplateIDs",notes="Returns all IDs",response=String.class,responseContainer="List",authorizations={
@Authorization(value="auth",scopes={
@Authorization(value="auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template")
,
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@ApiResponse(code=400,message="Invalid ID supplied"),
,
@ApiResponse(code=404,message="ToscaTemplate not found"),
@ApiResponse(code=400,message="Invalid ID supplied")
@ApiResponse(code=405,message="Invalid input")})
,
@ApiResponse(code=404,message="ToscaTemplate not found")
,
@ApiResponse(code=405,message="Invalid input")})
@RequestMapping(value="/tosca_template/{id}",
@RequestMapping(value="/tosca_template/{id}",
produces={"text/plain"},
produces={"text/plain"},
consumes={"multipart/form-data"},
consumes={"multipart/form-data"},
method=RequestMethod.PUT)
method=RequestMethod.PUT)
ResponseEntity<String>updateToscaTemplateByID(@ApiParam(value="ID of topolog template to return",required=true)@PathVariable("id")Stringid,@ApiParam(value="file detail")@Valid@RequestPart("file")MultipartFilefile);
ResponseEntity<String>updateToscaTemplateByID(@ApiParam(value="ID of topolog template to return",required=true)@PathVariable("id")Stringid,@ApiParam(value="file detail")@Valid@RequestPart("file")MultipartFilefile);
@ApiOperation(value="upload a tosca template description file",nickname="uploadToscaTemplate",notes="uploads and validates TOSCA template file",response=String.class,authorizations={
@ApiOperation(value="upload a tosca template description file",nickname="uploadToscaTemplate",notes="uploads and validates TOSCA template file",response=String.class,authorizations={
@Authorization(value="auth",scopes={
@Authorization(value="auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template")
,
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")