Issue 158: Added cancel service

This commit is contained in:
Jason King 2011-09-20 13:32:53 +01:00
parent def43f2e67
commit d5df2d2057
2 changed files with 19 additions and 0 deletions

View File

@ -114,4 +114,13 @@ public interface VirtualGuestAsyncClient {
@Consumes(MediaType.APPLICATION_JSON)
@ExceptionParser(ReturnVoidOnNotFoundOr404.class)
ListenableFuture<Void> resumeVirtualGuest(@PathParam("id") long id);
/**
* @see VirtualGuestClient#cancelService
*/
@GET
@Path("/SoftLayer_Billing_Item/{id}/cancelService.json")
@Consumes(MediaType.APPLICATION_JSON)
@ExceptionParser(ReturnVoidOnNotFoundOr404.class)
ListenableFuture<Boolean> cancelService(@PathParam("id") long id);
}

View File

@ -88,4 +88,14 @@ public interface VirtualGuestClient {
* id of the virtual guest
*/
void resumeVirtualGuest(long id);
/**
* Cancel the resource or service for a billing Item
*
* @param id
* The id of the billing item to cancel
* @return true or false
*/
boolean cancelService(long id);
}