mirror of https://github.com/apache/jclouds.git
Issue 158: Added cancel service
This commit is contained in:
parent
def43f2e67
commit
d5df2d2057
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue