This commit is contained in:
adriancole 2013-02-04 07:23:31 -08:00
parent d1088cd958
commit 756e7724ef
1 changed files with 13 additions and 0 deletions

View File

@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
import java.util.Set;
import javax.inject.Named;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.QueryParam;
@ -56,6 +57,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#listVirtualMachines
*/
@Named("listVirtualMachines")
@GET
@QueryParams(keys = { "command", "listAll" }, values = { "listVirtualMachines", "true" })
@SelectJson("virtualmachine")
@ -66,6 +68,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#getVirtualMachine
*/
@Named("listVirtualMachines")
@GET
@QueryParams(keys = { "command", "listAll" }, values = { "listVirtualMachines", "true" })
@SelectJson("virtualmachine")
@ -77,6 +80,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#deployVirtualMachineInZone
*/
@Named("deployVirtualMachine")
@GET
@QueryParams(keys = "command", values = "deployVirtualMachine")
@SelectJson({ "deployvirtualmachine", "deployvirtualmachineresponse" })
@ -88,6 +92,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#rebootVirtualMachine
*/
@Named("rebootVirtualMachine")
@GET
@QueryParams(keys = "command", values = "rebootVirtualMachine")
@SelectJson("jobid")
@ -97,6 +102,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#startVirtualMachine
*/
@Named("startVirtualMachine")
@GET
@QueryParams(keys = "command", values = "startVirtualMachine")
@SelectJson("jobid")
@ -106,6 +112,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#stopVirtualMachine
*/
@Named("stopVirtualMachine")
@GET
@QueryParams(keys = "command", values = "stopVirtualMachine")
@SelectJson("jobid")
@ -115,6 +122,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#resetPasswordForVirtualMachine
*/
@Named("resetPasswordForVirtualMachine")
@GET
@QueryParams(keys = "command", values = "resetPasswordForVirtualMachine")
@SelectJson("jobid")
@ -124,6 +132,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#getEncryptedPasswordForVirtualMachine
*/
@Named("getVMPassword")
@GET
@QueryParams(keys = "command", values = "getVMPassword")
@SelectJson("encryptedpassword")
@ -133,6 +142,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#changeServiceForVirtualMachine
*/
@Named("changeServiceForVirtualMachine")
@GET
@QueryParams(keys = "command", values = "changeServiceForVirtualMachine")
@SelectJson("jobid")
@ -142,6 +152,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#updateVirtualMachine
*/
@Named("updateVirtualMachine")
@GET
@QueryParams(keys = "command", values = "updateVirtualMachine")
@SelectJson("jobid")
@ -151,6 +162,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#destroyVirtualMachine
*/
@Named("destroyVirtualMachine")
@GET
@QueryParams(keys = "command", values = "destroyVirtualMachine")
@SelectJson("jobid")
@ -161,6 +173,7 @@ public interface VirtualMachineAsyncClient {
/**
* @see VirtualMachineClient#assinVirtualMachine
*/
@Named("assignVirtualMachine")
@GET
@QueryParams(keys = "command", values = "assignVirtualMachine")
@SelectJson("jobid")