mirror of https://github.com/apache/jclouds.git
issue #1184 command names for cloudstack
This commit is contained in:
parent
82c9d709b6
commit
1bcf73197d
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -52,6 +53,7 @@ public interface AccountAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see AccountClient#listAccounts
|
* @see AccountClient#listAccounts
|
||||||
*/
|
*/
|
||||||
|
@Named("listAccounts")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listAccounts", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listAccounts", "true" })
|
||||||
@SelectJson("account")
|
@SelectJson("account")
|
||||||
|
@ -62,6 +64,7 @@ public interface AccountAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see AccountClient#getAccount
|
* @see AccountClient#getAccount
|
||||||
*/
|
*/
|
||||||
|
@Named("listAccounts")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listAccounts", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listAccounts", "true" })
|
||||||
@SelectJson("account")
|
@SelectJson("account")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -57,6 +58,7 @@ public interface AddressAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see AddressClient#listPublicIPAddresses
|
* @see AddressClient#listPublicIPAddresses
|
||||||
*/
|
*/
|
||||||
|
@Named("listPublicIpAddresses")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listPublicIpAddresses", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listPublicIpAddresses", "true" })
|
||||||
@SelectJson("publicipaddress")
|
@SelectJson("publicipaddress")
|
||||||
|
@ -67,6 +69,7 @@ public interface AddressAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see AddressClient#getPublicIPAddress
|
* @see AddressClient#getPublicIPAddress
|
||||||
*/
|
*/
|
||||||
|
@Named("listPublicIpAddresses")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listPublicIpAddresses", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listPublicIpAddresses", "true" })
|
||||||
@SelectJson("publicipaddress")
|
@SelectJson("publicipaddress")
|
||||||
|
@ -78,6 +81,7 @@ public interface AddressAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see AddressClient#associateIPAddressInZone
|
* @see AddressClient#associateIPAddressInZone
|
||||||
*/
|
*/
|
||||||
|
@Named("associateIpAddress")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "associateIpAddress")
|
@QueryParams(keys = "command", values = "associateIpAddress")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -88,6 +92,7 @@ public interface AddressAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see AddressClient#disassociateIPAddress
|
* @see AddressClient#disassociateIPAddress
|
||||||
*/
|
*/
|
||||||
|
@Named("disassociateIpAddress")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "disassociateIpAddress")
|
@QueryParams(keys = "command", values = "disassociateIpAddress")
|
||||||
@Fallback(VoidOnNotFoundOr404OrUnableToFindAccountOwner.class)
|
@Fallback(VoidOnNotFoundOr404OrUnableToFindAccountOwner.class)
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -54,6 +55,7 @@ public interface AsyncJobAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see AsyncJobClient#listAsyncJobs
|
* @see AsyncJobClient#listAsyncJobs
|
||||||
*/
|
*/
|
||||||
|
@Named("listAsyncJobs")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listAsyncJobs", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listAsyncJobs", "true" })
|
||||||
@ResponseParser(ParseAsyncJobsFromHttpResponse.class)
|
@ResponseParser(ParseAsyncJobsFromHttpResponse.class)
|
||||||
|
@ -63,6 +65,7 @@ public interface AsyncJobAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see AsyncJobClient#getAsyncJob
|
* @see AsyncJobClient#getAsyncJob
|
||||||
*/
|
*/
|
||||||
|
@Named("queryAsyncJobResult")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "queryAsyncJobResult")
|
@QueryParams(keys = "command", values = "queryAsyncJobResult")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
@ -45,6 +46,7 @@ public interface ConfigurationAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see ConfigurationClient#listCapabilities
|
* @see ConfigurationClient#listCapabilities
|
||||||
*/
|
*/
|
||||||
|
@Named("listCapabilities")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "listCapabilities")
|
@QueryParams(keys = "command", values = "listCapabilities")
|
||||||
@SelectJson("capability")
|
@SelectJson("capability")
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -51,6 +52,7 @@ public interface DomainAccountAsyncClient extends AccountAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see DomainAccountClient#enableAccount
|
* @see DomainAccountClient#enableAccount
|
||||||
*/
|
*/
|
||||||
|
@Named("enableAccount")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "enableAccount")
|
@QueryParams(keys = "command", values = "enableAccount")
|
||||||
@SelectJson("account")
|
@SelectJson("account")
|
||||||
|
@ -62,6 +64,7 @@ public interface DomainAccountAsyncClient extends AccountAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see DomainAccountAsyncClient#disableAccount
|
* @see DomainAccountAsyncClient#disableAccount
|
||||||
*/
|
*/
|
||||||
|
@Named("disableAccount")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "disableAccount")
|
@QueryParams(keys = "command", values = "disableAccount")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -55,6 +56,7 @@ public interface DomainDomainAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see DomainDomainClient#listDomains
|
* @see DomainDomainClient#listDomains
|
||||||
*/
|
*/
|
||||||
|
@Named("listDomains")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listDomains", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listDomains", "true" })
|
||||||
@SelectJson("domain")
|
@SelectJson("domain")
|
||||||
|
@ -65,6 +67,7 @@ public interface DomainDomainAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see DomainDomainClient#getDomainById
|
* @see DomainDomainClient#getDomainById
|
||||||
*/
|
*/
|
||||||
|
@Named("listDomains")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listDomains", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listDomains", "true" })
|
||||||
@SelectJson("domain")
|
@SelectJson("domain")
|
||||||
|
@ -76,6 +79,7 @@ public interface DomainDomainAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see DomainDomainClient#listDomainChildren
|
* @see DomainDomainClient#listDomainChildren
|
||||||
*/
|
*/
|
||||||
|
@Named("listDomainChildren")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listDomainChildren", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listDomainChildren", "true" })
|
||||||
@SelectJson("domain")
|
@SelectJson("domain")
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
@ -47,6 +48,7 @@ public interface DomainLimitAsyncClient extends LimitAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see DomainLimitClient#updateResourceLimit
|
* @see DomainLimitClient#updateResourceLimit
|
||||||
*/
|
*/
|
||||||
|
@Named("updateResourceLimit")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateResourceLimit")
|
@QueryParams(keys = "command", values = "updateResourceLimit")
|
||||||
@SelectJson("resourcelimit")
|
@SelectJson("resourcelimit")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -55,6 +56,7 @@ public interface DomainUserAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see DomainUserClient#listUsers
|
* @see DomainUserClient#listUsers
|
||||||
*/
|
*/
|
||||||
|
@Named("listUsers")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "listUsers")
|
@QueryParams(keys = "command", values = "listUsers")
|
||||||
@SelectJson("user")
|
@SelectJson("user")
|
||||||
|
@ -65,6 +67,7 @@ public interface DomainUserAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see DomainUserClient#enableUser
|
* @see DomainUserClient#enableUser
|
||||||
*/
|
*/
|
||||||
|
@Named("enableUser")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "enableUser")
|
@QueryParams(keys = "command", values = "enableUser")
|
||||||
@SelectJson("user")
|
@SelectJson("user")
|
||||||
|
@ -75,6 +78,7 @@ public interface DomainUserAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see DomainUserClient#disableUser
|
* @see DomainUserClient#disableUser
|
||||||
*/
|
*/
|
||||||
|
@Named("disableUser")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "disableUser")
|
@QueryParams(keys = "command", values = "disableUser")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
@ -51,6 +52,7 @@ public interface EventAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see EventClient#listEventTypes()
|
* @see EventClient#listEventTypes()
|
||||||
*/
|
*/
|
||||||
|
@Named("listEventTypes")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "listEventTypes")
|
@QueryParams(keys = "command", values = "listEventTypes")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
@ -61,6 +63,7 @@ public interface EventAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see EventClient#listEventTypes()
|
* @see EventClient#listEventTypes()
|
||||||
*/
|
*/
|
||||||
|
@Named("listEventTypes")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "listEvents")
|
@QueryParams(keys = "command", values = "listEvents")
|
||||||
@SelectJson("event")
|
@SelectJson("event")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -59,6 +60,7 @@ public interface FirewallAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see FirewallClient#listFirewallRules
|
* @see FirewallClient#listFirewallRules
|
||||||
*/
|
*/
|
||||||
|
@Named("listFirewallRules")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listFirewallRules", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listFirewallRules", "true" })
|
||||||
@SelectJson("firewallrule")
|
@SelectJson("firewallrule")
|
||||||
|
@ -69,6 +71,7 @@ public interface FirewallAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see FirewallClient#getFirewallRule
|
* @see FirewallClient#getFirewallRule
|
||||||
*/
|
*/
|
||||||
|
@Named("listFirewallRules")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listFirewallRules", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listFirewallRules", "true" })
|
||||||
@SelectJson("firewallrule")
|
@SelectJson("firewallrule")
|
||||||
|
@ -80,6 +83,7 @@ public interface FirewallAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see FirewallClient#createFirewallRuleForIpAndProtocol
|
* @see FirewallClient#createFirewallRuleForIpAndProtocol
|
||||||
*/
|
*/
|
||||||
|
@Named("createFirewallRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createFirewallRule")
|
@QueryParams(keys = "command", values = "createFirewallRule")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -90,6 +94,7 @@ public interface FirewallAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see FirewallClient#createFirewallRuleForIpProtocolAndPort
|
* @see FirewallClient#createFirewallRuleForIpProtocolAndPort
|
||||||
*/
|
*/
|
||||||
|
@Named("createFirewallRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createFirewallRule")
|
@QueryParams(keys = "command", values = "createFirewallRule")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -103,6 +108,7 @@ public interface FirewallAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see FirewallClient#deleteFirewallRule
|
* @see FirewallClient#deleteFirewallRule
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteFirewallRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteFirewallRule")
|
@QueryParams(keys = "command", values = "deleteFirewallRule")
|
||||||
@Fallback(VoidOnNotFoundOr404.class)
|
@Fallback(VoidOnNotFoundOr404.class)
|
||||||
|
@ -111,6 +117,7 @@ public interface FirewallAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see FirewallClient#listPortForwardingRules
|
* @see FirewallClient#listPortForwardingRules
|
||||||
*/
|
*/
|
||||||
|
@Named("listPortForwardingRules")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listPortForwardingRules", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listPortForwardingRules", "true" })
|
||||||
@SelectJson("portforwardingrule")
|
@SelectJson("portforwardingrule")
|
||||||
|
@ -121,6 +128,7 @@ public interface FirewallAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see FirewallClient#getPortForwardingRule
|
* @see FirewallClient#getPortForwardingRule
|
||||||
*/
|
*/
|
||||||
|
@Named("listPortForwardingRules")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listPortForwardingRules", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listPortForwardingRules", "true" })
|
||||||
@SelectJson("portforwardingrule")
|
@SelectJson("portforwardingrule")
|
||||||
|
@ -132,6 +140,7 @@ public interface FirewallAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see FirewallClient#createPortForwardingRuleForVirtualMachine
|
* @see FirewallClient#createPortForwardingRuleForVirtualMachine
|
||||||
*/
|
*/
|
||||||
|
@Named("createPortForwardingRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createPortForwardingRule")
|
@QueryParams(keys = "command", values = "createPortForwardingRule")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -144,6 +153,7 @@ public interface FirewallAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see FirewallClient#deletePortForwardingRule
|
* @see FirewallClient#deletePortForwardingRule
|
||||||
*/
|
*/
|
||||||
|
@Named("deletePortForwardingRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deletePortForwardingRule")
|
@QueryParams(keys = "command", values = "deletePortForwardingRule")
|
||||||
@Fallback(VoidOnNotFoundOr404.class)
|
@Fallback(VoidOnNotFoundOr404.class)
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -51,6 +52,7 @@ public interface GlobalAccountAsyncClient extends DomainAccountAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalAccountClient#createAccount
|
* @see GlobalAccountClient#createAccount
|
||||||
*/
|
*/
|
||||||
|
@Named("createAccount")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createAccount")
|
@QueryParams(keys = "command", values = "createAccount")
|
||||||
@SelectJson("account")
|
@SelectJson("account")
|
||||||
|
@ -64,6 +66,7 @@ public interface GlobalAccountAsyncClient extends DomainAccountAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalAccountClient#updateAccount
|
* @see GlobalAccountClient#updateAccount
|
||||||
*/
|
*/
|
||||||
|
@Named("updateAccount")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateAccount")
|
@QueryParams(keys = "command", values = "updateAccount")
|
||||||
@SelectJson("account")
|
@SelectJson("account")
|
||||||
|
@ -75,6 +78,7 @@ public interface GlobalAccountAsyncClient extends DomainAccountAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalAccountClient#deleteAccount
|
* @see GlobalAccountClient#deleteAccount
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteAccount")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteAccount")
|
@QueryParams(keys = "command", values = "deleteAccount")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
@ -51,6 +52,7 @@ public interface GlobalAlertAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalAlertClient#listAlerts(org.jclouds.cloudstack.options.ListAlertsOptions...)
|
* @see GlobalAlertClient#listAlerts(org.jclouds.cloudstack.options.ListAlertsOptions...)
|
||||||
*/
|
*/
|
||||||
|
@Named("listAlerts")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listAlerts", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listAlerts", "true" })
|
||||||
@SelectJson("alert")
|
@SelectJson("alert")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
@ -51,6 +52,7 @@ public interface GlobalCapacityAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalCapacityClient#listCapacity(org.jclouds.cloudstack.options.ListCapacityOptions...)
|
* @see GlobalCapacityClient#listCapacity(org.jclouds.cloudstack.options.ListCapacityOptions...)
|
||||||
*/
|
*/
|
||||||
|
@Named("listCapacity")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listCapacity", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listCapacity", "true" })
|
||||||
@SelectJson("capacity")
|
@SelectJson("capacity")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -53,6 +54,7 @@ public interface GlobalConfigurationAsyncClient extends ConfigurationAsyncClient
|
||||||
/**
|
/**
|
||||||
* @see GlobalConfigurationClient#listConfigurationEntries
|
* @see GlobalConfigurationClient#listConfigurationEntries
|
||||||
*/
|
*/
|
||||||
|
@Named("listConfigurations")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listConfigurations", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listConfigurations", "true" })
|
||||||
@SelectJson("configuration")
|
@SelectJson("configuration")
|
||||||
|
@ -63,6 +65,7 @@ public interface GlobalConfigurationAsyncClient extends ConfigurationAsyncClient
|
||||||
/**
|
/**
|
||||||
* @see GlobalConfigurationClient#updateConfigurationEntry
|
* @see GlobalConfigurationClient#updateConfigurationEntry
|
||||||
*/
|
*/
|
||||||
|
@Named("updateConfiguration")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateConfiguration")
|
@QueryParams(keys = "command", values = "updateConfiguration")
|
||||||
@SelectJson("configuration")
|
@SelectJson("configuration")
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -52,6 +53,7 @@ public interface GlobalDomainAsyncClient extends DomainDomainAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalDomainClient#createDomain
|
* @see GlobalDomainClient#createDomain
|
||||||
*/
|
*/
|
||||||
|
@Named("createDomain")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createDomain")
|
@QueryParams(keys = "command", values = "createDomain")
|
||||||
@SelectJson("domain")
|
@SelectJson("domain")
|
||||||
|
@ -62,6 +64,7 @@ public interface GlobalDomainAsyncClient extends DomainDomainAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalDomainClient#updateDomain
|
* @see GlobalDomainClient#updateDomain
|
||||||
*/
|
*/
|
||||||
|
@Named("updateDomain")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateDomain")
|
@QueryParams(keys = "command", values = "updateDomain")
|
||||||
@SelectJson("domain")
|
@SelectJson("domain")
|
||||||
|
@ -72,6 +75,7 @@ public interface GlobalDomainAsyncClient extends DomainDomainAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalDomainClient#deleteOnlyDomain
|
* @see GlobalDomainClient#deleteOnlyDomain
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteDomain")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = {"command", "cleanup"}, values = {"deleteDomain", "false"})
|
@QueryParams(keys = {"command", "cleanup"}, values = {"deleteDomain", "false"})
|
||||||
@Fallback(VoidOnNotFoundOr404.class)
|
@Fallback(VoidOnNotFoundOr404.class)
|
||||||
|
@ -80,6 +84,7 @@ public interface GlobalDomainAsyncClient extends DomainDomainAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalDomainClient#deleteDomainAndAttachedResources
|
* @see GlobalDomainClient#deleteDomainAndAttachedResources
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteDomain")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = {"command", "cleanup"}, values = {"deleteDomain", "true"})
|
@QueryParams(keys = {"command", "cleanup"}, values = {"deleteDomain", "true"})
|
||||||
@Fallback(VoidOnNotFoundOr404.class)
|
@Fallback(VoidOnNotFoundOr404.class)
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -59,6 +60,7 @@ public interface GlobalHostAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalHostClient#listHosts
|
* @see GlobalHostClient#listHosts
|
||||||
*/
|
*/
|
||||||
|
@Named("listHosts")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listHosts", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listHosts", "true" })
|
||||||
@SelectJson("host")
|
@SelectJson("host")
|
||||||
|
@ -77,6 +79,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return the new host.
|
* @return the new host.
|
||||||
*/
|
*/
|
||||||
|
@Named("addHost")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "addHost")
|
@QueryParams(keys = "command", values = "addHost")
|
||||||
@SelectJson("host")
|
@SelectJson("host")
|
||||||
|
@ -90,6 +93,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return the modified host.
|
* @return the modified host.
|
||||||
*/
|
*/
|
||||||
|
@Named("updateHost")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateHost")
|
@QueryParams(keys = "command", values = "updateHost")
|
||||||
@SelectJson("host")
|
@SelectJson("host")
|
||||||
|
@ -103,6 +107,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param username the username for the host
|
* @param username the username for the host
|
||||||
* @param password the password for the host
|
* @param password the password for the host
|
||||||
*/
|
*/
|
||||||
|
@Named("updateHostPassword")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateHostPassword")
|
@QueryParams(keys = "command", values = "updateHostPassword")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
@ -114,6 +119,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param hostId the host ID
|
* @param hostId the host ID
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteHost")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteHost")
|
@QueryParams(keys = "command", values = "deleteHost")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
@ -125,6 +131,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param hostId the host ID
|
* @param hostId the host ID
|
||||||
* @return a job reference number for tracking this asynchronous job.
|
* @return a job reference number for tracking this asynchronous job.
|
||||||
*/
|
*/
|
||||||
|
@Named("prepareHostForMaintenance")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "prepareHostForMaintenance")
|
@QueryParams(keys = "command", values = "prepareHostForMaintenance")
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
@ -137,6 +144,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param hostId the host ID
|
* @param hostId the host ID
|
||||||
* @return a job reference number for tracking this asynchronous job.
|
* @return a job reference number for tracking this asynchronous job.
|
||||||
*/
|
*/
|
||||||
|
@Named("cancelHostMaintenance")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "cancelHostMaintenance")
|
@QueryParams(keys = "command", values = "cancelHostMaintenance")
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
@ -149,6 +157,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param hostId
|
* @param hostId
|
||||||
* @return a job reference number for tracking this asynchronous job.
|
* @return a job reference number for tracking this asynchronous job.
|
||||||
*/
|
*/
|
||||||
|
@Named("reconnectHost")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "reconnectHost")
|
@QueryParams(keys = "command", values = "reconnectHost")
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
@ -162,6 +171,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return the host of the storage.
|
* @return the host of the storage.
|
||||||
*/
|
*/
|
||||||
|
@Named("addSecondaryStorage")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "addSecondaryStorage")
|
@QueryParams(keys = "command", values = "addSecondaryStorage")
|
||||||
@SelectJson("host")
|
@SelectJson("host")
|
||||||
|
@ -171,6 +181,7 @@ public interface GlobalHostAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalHostClient#listClusters
|
* @see GlobalHostClient#listClusters
|
||||||
*/
|
*/
|
||||||
|
@Named("listClusters")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listClusters", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listClusters", "true" })
|
||||||
@SelectJson("cluster")
|
@SelectJson("cluster")
|
||||||
|
@ -188,6 +199,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return the new cluster.
|
* @return the new cluster.
|
||||||
*/
|
*/
|
||||||
|
@Named("addCluster")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "addCluster")
|
@QueryParams(keys = "command", values = "addCluster")
|
||||||
@SelectJson("cluster")
|
@SelectJson("cluster")
|
||||||
|
@ -201,6 +213,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return the modified cluster
|
* @return the modified cluster
|
||||||
*/
|
*/
|
||||||
|
@Named("updateCluster")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateCluster")
|
@QueryParams(keys = "command", values = "updateCluster")
|
||||||
@SelectJson("cluster")
|
@SelectJson("cluster")
|
||||||
|
@ -214,6 +227,7 @@ public interface GlobalHostAsyncClient {
|
||||||
* @param username the username for the cluster
|
* @param username the username for the cluster
|
||||||
* @param password the password for the cluster
|
* @param password the password for the cluster
|
||||||
*/
|
*/
|
||||||
|
@Named("updateHostPassword")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateHostPassword")
|
@QueryParams(keys = "command", values = "updateHostPassword")
|
||||||
@SelectJson("cluster")
|
@SelectJson("cluster")
|
||||||
|
@ -225,6 +239,7 @@ public interface GlobalHostAsyncClient {
|
||||||
*
|
*
|
||||||
* @param clusterId the cluster ID
|
* @param clusterId the cluster ID
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteCluster")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteCluster")
|
@QueryParams(keys = "command", values = "deleteCluster")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -55,6 +56,7 @@ public interface GlobalOfferingAsyncClient extends OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalOfferingClient#createServiceOffering
|
* @see GlobalOfferingClient#createServiceOffering
|
||||||
*/
|
*/
|
||||||
|
@Named("createServiceOffering")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createServiceOffering")
|
@QueryParams(keys = "command", values = "createServiceOffering")
|
||||||
@SelectJson("serviceoffering")
|
@SelectJson("serviceoffering")
|
||||||
|
@ -67,6 +69,7 @@ public interface GlobalOfferingAsyncClient extends OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalOfferingClient#updateServiceOffering
|
* @see GlobalOfferingClient#updateServiceOffering
|
||||||
*/
|
*/
|
||||||
|
@Named("updateServiceOffering")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateServiceOffering")
|
@QueryParams(keys = "command", values = "updateServiceOffering")
|
||||||
@SelectJson("serviceoffering")
|
@SelectJson("serviceoffering")
|
||||||
|
@ -77,6 +80,7 @@ public interface GlobalOfferingAsyncClient extends OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalOfferingClient#deleteServiceOffering
|
* @see GlobalOfferingClient#deleteServiceOffering
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteServiceOffering")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteServiceOffering")
|
@QueryParams(keys = "command", values = "deleteServiceOffering")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
@ -86,6 +90,7 @@ public interface GlobalOfferingAsyncClient extends OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalOfferingClient#createDiskOffering
|
* @see GlobalOfferingClient#createDiskOffering
|
||||||
*/
|
*/
|
||||||
|
@Named("createDiskOffering")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createDiskOffering")
|
@QueryParams(keys = "command", values = "createDiskOffering")
|
||||||
@SelectJson("diskoffering")
|
@SelectJson("diskoffering")
|
||||||
|
@ -97,6 +102,7 @@ public interface GlobalOfferingAsyncClient extends OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalOfferingClient#updateDiskOffering
|
* @see GlobalOfferingClient#updateDiskOffering
|
||||||
*/
|
*/
|
||||||
|
@Named("updateDiskOffering")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateDiskOffering")
|
@QueryParams(keys = "command", values = "updateDiskOffering")
|
||||||
@SelectJson("diskoffering")
|
@SelectJson("diskoffering")
|
||||||
|
@ -107,6 +113,7 @@ public interface GlobalOfferingAsyncClient extends OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalOfferingClient#deleteDiskOffering
|
* @see GlobalOfferingClient#deleteDiskOffering
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteDiskOffering")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteDiskOffering")
|
@QueryParams(keys = "command", values = "deleteDiskOffering")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
@ -116,6 +123,7 @@ public interface GlobalOfferingAsyncClient extends OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalOfferingClient#updateNetworkOffering
|
* @see GlobalOfferingClient#updateNetworkOffering
|
||||||
*/
|
*/
|
||||||
|
@Named("updateNetworkOffering")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values ="updateNetworkOffering")
|
@QueryParams(keys = "command", values ="updateNetworkOffering")
|
||||||
@SelectJson("networkoffering")
|
@SelectJson("networkoffering")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -57,6 +58,7 @@ public interface GlobalPodAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see PodClient#listPods
|
* @see PodClient#listPods
|
||||||
*/
|
*/
|
||||||
|
@Named("listPods")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listPods", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listPods", "true" })
|
||||||
@SelectJson("pod")
|
@SelectJson("pod")
|
||||||
|
@ -67,6 +69,7 @@ public interface GlobalPodAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see PodClient#getPod
|
* @see PodClient#getPod
|
||||||
*/
|
*/
|
||||||
|
@Named("listPods")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listPods", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listPods", "true" })
|
||||||
@SelectJson("pod")
|
@SelectJson("pod")
|
||||||
|
@ -87,6 +90,7 @@ public interface GlobalPodAsyncClient {
|
||||||
* @param createPodOptions optional arguments
|
* @param createPodOptions optional arguments
|
||||||
* @return the new Pod
|
* @return the new Pod
|
||||||
*/
|
*/
|
||||||
|
@Named("createPod")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createPod")
|
@QueryParams(keys = "command", values = "createPod")
|
||||||
@SelectJson("pod")
|
@SelectJson("pod")
|
||||||
|
@ -105,6 +109,7 @@ public interface GlobalPodAsyncClient {
|
||||||
* @param createPodOptions optional arguments
|
* @param createPodOptions optional arguments
|
||||||
* @return the new Pod
|
* @return the new Pod
|
||||||
*/
|
*/
|
||||||
|
@Named("createPod")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createPod")
|
@QueryParams(keys = "command", values = "createPod")
|
||||||
@SelectJson("pod")
|
@SelectJson("pod")
|
||||||
|
@ -116,6 +121,7 @@ public interface GlobalPodAsyncClient {
|
||||||
* Deletes a Pod.
|
* Deletes a Pod.
|
||||||
* @param id the ID of the Pod
|
* @param id the ID of the Pod
|
||||||
*/
|
*/
|
||||||
|
@Named("deletePod")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deletePod")
|
@QueryParams(keys = "command", values = "deletePod")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
@ -128,6 +134,7 @@ public interface GlobalPodAsyncClient {
|
||||||
* @param updatePodOptions optional arguments
|
* @param updatePodOptions optional arguments
|
||||||
* @return the updated pod
|
* @return the updated pod
|
||||||
*/
|
*/
|
||||||
|
@Named("updatePod")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updatePod")
|
@QueryParams(keys = "command", values = "updatePod")
|
||||||
@SelectJson("pod")
|
@SelectJson("pod")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
@ -45,6 +46,7 @@ import com.google.common.util.concurrent.ListenableFuture;
|
||||||
@QueryParams(keys = "response", values = "json")
|
@QueryParams(keys = "response", values = "json")
|
||||||
public interface GlobalStoragePoolAsyncClient {
|
public interface GlobalStoragePoolAsyncClient {
|
||||||
|
|
||||||
|
@Named("listStoragePools")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listStoragePools", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listStoragePools", "true" })
|
||||||
@SelectJson("storagepool")
|
@SelectJson("storagepool")
|
||||||
|
|
|
@ -21,6 +21,7 @@ package org.jclouds.cloudstack.features;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -51,12 +52,14 @@ import com.google.common.util.concurrent.ListenableFuture;
|
||||||
@QueryParams(keys = "response", values = "json")
|
@QueryParams(keys = "response", values = "json")
|
||||||
public interface GlobalUsageAsyncClient {
|
public interface GlobalUsageAsyncClient {
|
||||||
|
|
||||||
|
@Named("generateUsageRecords")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "generateUsageRecords")
|
@QueryParams(keys = "command", values = "generateUsageRecords")
|
||||||
@SelectJson("generateusagerecordsresponse")
|
@SelectJson("generateusagerecordsresponse")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
ListenableFuture<JobResult> generateUsageRecords(@QueryParam("startdate") @ParamParser(DateToYyyyMmDd.class) Date start, @QueryParam("enddate") @ParamParser(DateToYyyyMmDd.class) Date end, GenerateUsageRecordsOptions... options);
|
ListenableFuture<JobResult> generateUsageRecords(@QueryParam("startdate") @ParamParser(DateToYyyyMmDd.class) Date start, @QueryParam("enddate") @ParamParser(DateToYyyyMmDd.class) Date end, GenerateUsageRecordsOptions... options);
|
||||||
|
|
||||||
|
@Named("listUsageRecords")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listUsageRecords", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listUsageRecords", "true" })
|
||||||
@SelectJson("usagerecord")
|
@SelectJson("usagerecord")
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -52,6 +53,7 @@ public interface GlobalUserAsyncClient extends DomainUserAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalUserClient#createUser
|
* @see GlobalUserClient#createUser
|
||||||
*/
|
*/
|
||||||
|
@Named("createUser")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createUser")
|
@QueryParams(keys = "command", values = "createUser")
|
||||||
@SelectJson("user")
|
@SelectJson("user")
|
||||||
|
@ -64,6 +66,7 @@ public interface GlobalUserAsyncClient extends DomainUserAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalUserClient#registerUserKeys
|
* @see GlobalUserClient#registerUserKeys
|
||||||
*/
|
*/
|
||||||
|
@Named("registerUserKeys")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "registerUserKeys")
|
@QueryParams(keys = "command", values = "registerUserKeys")
|
||||||
@SelectJson("userkeys")
|
@SelectJson("userkeys")
|
||||||
|
@ -74,6 +77,7 @@ public interface GlobalUserAsyncClient extends DomainUserAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalUserClient#updateUser
|
* @see GlobalUserClient#updateUser
|
||||||
*/
|
*/
|
||||||
|
@Named("updateUser")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateUser")
|
@QueryParams(keys = "command", values = "updateUser")
|
||||||
@SelectJson("user")
|
@SelectJson("user")
|
||||||
|
@ -84,6 +88,7 @@ public interface GlobalUserAsyncClient extends DomainUserAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalUserClient#deleteUser
|
* @see GlobalUserClient#deleteUser
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteUser")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteUser")
|
@QueryParams(keys = "command", values = "deleteUser")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -57,6 +58,7 @@ public interface GlobalVlanAsyncClient {
|
||||||
* @param id the required IP range.
|
* @param id the required IP range.
|
||||||
* @return the requested IP range.
|
* @return the requested IP range.
|
||||||
*/
|
*/
|
||||||
|
@Named("listVlanIpRanges")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listVlanIpRanges", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listVlanIpRanges", "true" })
|
||||||
@SelectJson("vlaniprange")
|
@SelectJson("vlaniprange")
|
||||||
|
@ -71,6 +73,7 @@ public interface GlobalVlanAsyncClient {
|
||||||
* @param options optional arguments.
|
* @param options optional arguments.
|
||||||
* @return the list of IP ranges that match the criteria.
|
* @return the list of IP ranges that match the criteria.
|
||||||
*/
|
*/
|
||||||
|
@Named("listVlanIpRanges")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listVlanIpRanges", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listVlanIpRanges", "true" })
|
||||||
@SelectJson("vlaniprange")
|
@SelectJson("vlaniprange")
|
||||||
|
@ -86,6 +89,7 @@ public interface GlobalVlanAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return the newly-create IP range.
|
* @return the newly-create IP range.
|
||||||
*/
|
*/
|
||||||
|
@Named("createVlanIpRange")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createVlanIpRange")
|
@QueryParams(keys = "command", values = "createVlanIpRange")
|
||||||
@SelectJson("vlaniprange")
|
@SelectJson("vlaniprange")
|
||||||
|
@ -98,6 +102,7 @@ public interface GlobalVlanAsyncClient {
|
||||||
* @param rangeId the id of the VLAN IP range
|
* @param rangeId the id of the VLAN IP range
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteVlanIpRange")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteVlanIpRange")
|
@QueryParams(keys = "command", values = "deleteVlanIpRange")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -53,6 +54,7 @@ public interface GlobalZoneAsyncClient extends ZoneAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalZoneClient#createZone
|
* @see GlobalZoneClient#createZone
|
||||||
*/
|
*/
|
||||||
|
@Named("createZone")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createZone")
|
@QueryParams(keys = "command", values = "createZone")
|
||||||
@SelectJson("zone")
|
@SelectJson("zone")
|
||||||
|
@ -64,6 +66,7 @@ public interface GlobalZoneAsyncClient extends ZoneAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalZoneClient#updateZone
|
* @see GlobalZoneClient#updateZone
|
||||||
*/
|
*/
|
||||||
|
@Named("updateZone")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateZone")
|
@QueryParams(keys = "command", values = "updateZone")
|
||||||
@SelectJson("zone")
|
@SelectJson("zone")
|
||||||
|
@ -74,6 +77,7 @@ public interface GlobalZoneAsyncClient extends ZoneAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GlobalZoneClient#deleteZone
|
* @see GlobalZoneClient#deleteZone
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteZone")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteZone")
|
@QueryParams(keys = "command", values = "deleteZone")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
|
|
@ -21,6 +21,7 @@ package org.jclouds.cloudstack.features;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -57,6 +58,7 @@ public interface GuestOSAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GuestOSClient#listOSTypes
|
* @see GuestOSClient#listOSTypes
|
||||||
*/
|
*/
|
||||||
|
@Named("listOsTypes")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listOsTypes", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listOsTypes", "true" })
|
||||||
@SelectJson("ostype")
|
@SelectJson("ostype")
|
||||||
|
@ -67,6 +69,7 @@ public interface GuestOSAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see OSTypeClient#getOSType
|
* @see OSTypeClient#getOSType
|
||||||
*/
|
*/
|
||||||
|
@Named("listOsTypes")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listOsTypes", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listOsTypes", "true" })
|
||||||
@SelectJson("ostype")
|
@SelectJson("ostype")
|
||||||
|
@ -78,6 +81,7 @@ public interface GuestOSAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GuestOSClient#listOSCategories
|
* @see GuestOSClient#listOSCategories
|
||||||
*/
|
*/
|
||||||
|
@Named("listOsCategories")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listOsCategories", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listOsCategories", "true" })
|
||||||
@ResponseParser(ParseIdToNameFromHttpResponse.class)
|
@ResponseParser(ParseIdToNameFromHttpResponse.class)
|
||||||
|
@ -87,6 +91,7 @@ public interface GuestOSAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see GuestOSClient#getOSCategory
|
* @see GuestOSClient#getOSCategory
|
||||||
*/
|
*/
|
||||||
|
@Named("listOsCategories")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listOsCategories", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listOsCategories", "true" })
|
||||||
@ResponseParser(ParseIdToNameEntryFromHttpResponse.class)
|
@ResponseParser(ParseIdToNameEntryFromHttpResponse.class)
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
|
||||||
|
@ -48,6 +49,7 @@ public interface HypervisorAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see HypervisorClient#listHypervisors
|
* @see HypervisorClient#listHypervisors
|
||||||
*/
|
*/
|
||||||
|
@Named("listHypervisors")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listHypervisors", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listHypervisors", "true" })
|
||||||
@ResponseParser(ParseNamesFromHttpResponse.class)
|
@ResponseParser(ParseNamesFromHttpResponse.class)
|
||||||
|
@ -57,6 +59,7 @@ public interface HypervisorAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see HypervisorClient#listHypervisorsInZone
|
* @see HypervisorClient#listHypervisorsInZone
|
||||||
*/
|
*/
|
||||||
|
@Named("listHypervisors")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listHypervisors", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listHypervisors", "true" })
|
||||||
@ResponseParser(ParseNamesFromHttpResponse.class)
|
@ResponseParser(ParseNamesFromHttpResponse.class)
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -67,6 +68,7 @@ public interface ISOAsyncClient {
|
||||||
* @param vmId the ID of the virtual machine
|
* @param vmId the ID of the virtual machine
|
||||||
* @return an asynchronous job response.
|
* @return an asynchronous job response.
|
||||||
*/
|
*/
|
||||||
|
@Named("attachIso")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "attachIso")
|
@QueryParams(keys = "command", values = "attachIso")
|
||||||
|
@ -79,6 +81,7 @@ public interface ISOAsyncClient {
|
||||||
* @param vmId The ID of the virtual machine
|
* @param vmId The ID of the virtual machine
|
||||||
* @return an asynchronous job response.
|
* @return an asynchronous job response.
|
||||||
*/
|
*/
|
||||||
|
@Named("detachIso")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "detachIso")
|
@QueryParams(keys = "command", values = "detachIso")
|
||||||
|
@ -91,6 +94,7 @@ public interface ISOAsyncClient {
|
||||||
* @param id the ID of the ISO file
|
* @param id the ID of the ISO file
|
||||||
* @return the ISO object matching the ID
|
* @return the ISO object matching the ID
|
||||||
*/
|
*/
|
||||||
|
@Named("listIsos")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listIsos", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listIsos", "true" })
|
||||||
|
@ -105,6 +109,7 @@ public interface ISOAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return a set of ISO objects the match the filter
|
* @return a set of ISO objects the match the filter
|
||||||
*/
|
*/
|
||||||
|
@Named("listIsos")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listIsos", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listIsos", "true" })
|
||||||
|
@ -122,6 +127,7 @@ public interface ISOAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return the newly-added ISO
|
* @return the newly-added ISO
|
||||||
*/
|
*/
|
||||||
|
@Named("registerIso")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "registerIso")
|
@QueryParams(keys = "command", values = "registerIso")
|
||||||
|
@ -136,6 +142,7 @@ public interface ISOAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return the ISO object matching the ID
|
* @return the ISO object matching the ID
|
||||||
*/
|
*/
|
||||||
|
@Named("updateIso")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "updateIso")
|
@QueryParams(keys = "command", values = "updateIso")
|
||||||
|
@ -149,6 +156,7 @@ public interface ISOAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return an asynchronous job response.
|
* @return an asynchronous job response.
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteIso")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "deleteIso")
|
@QueryParams(keys = "command", values = "deleteIso")
|
||||||
|
@ -163,6 +171,7 @@ public interface ISOAsyncClient {
|
||||||
* @param destZoneId ID of the zone the template is being copied to.
|
* @param destZoneId ID of the zone the template is being copied to.
|
||||||
* @return an asynchronous job response.
|
* @return an asynchronous job response.
|
||||||
*/
|
*/
|
||||||
|
@Named("copyIso")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "copyIso")
|
@QueryParams(keys = "command", values = "copyIso")
|
||||||
|
@ -176,6 +185,7 @@ public interface ISOAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@Named("updateIsoPermissions")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "updateIsoPermissions")
|
@QueryParams(keys = "command", values = "updateIsoPermissions")
|
||||||
|
@ -189,6 +199,7 @@ public interface ISOAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return A set of the permissions on this ISO
|
* @return A set of the permissions on this ISO
|
||||||
*/
|
*/
|
||||||
|
@Named("listIsoPermissions")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listIsoPermissions", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listIsoPermissions", "true" })
|
||||||
|
@ -204,6 +215,7 @@ public interface ISOAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return an asynchronous job response.
|
* @return an asynchronous job response.
|
||||||
*/
|
*/
|
||||||
|
@Named("extractIso")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "extractIso")
|
@QueryParams(keys = "command", values = "extractIso")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
|
@ -49,6 +50,7 @@ public interface LimitAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see org.jclouds.cloudstack.features.LimitClient#listResourceLimits
|
* @see org.jclouds.cloudstack.features.LimitClient#listResourceLimits
|
||||||
*/
|
*/
|
||||||
|
@Named("listResourceLimits")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listResourceLimits", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listResourceLimits", "true" })
|
||||||
@SelectJson("resourcelimit")
|
@SelectJson("resourcelimit")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -59,6 +60,7 @@ public interface LoadBalancerAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see LoadBalancerClient#listLoadBalancerRules
|
* @see LoadBalancerClient#listLoadBalancerRules
|
||||||
*/
|
*/
|
||||||
|
@Named("listLoadBalancerRules")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listLoadBalancerRules", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listLoadBalancerRules", "true" })
|
||||||
@SelectJson("loadbalancerrule")
|
@SelectJson("loadbalancerrule")
|
||||||
|
@ -69,6 +71,7 @@ public interface LoadBalancerAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see LoadBalancerClient#getLoadBalancerRule
|
* @see LoadBalancerClient#getLoadBalancerRule
|
||||||
*/
|
*/
|
||||||
|
@Named("listLoadBalancerRules")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listLoadBalancerRules", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listLoadBalancerRules", "true" })
|
||||||
@SelectJson("loadbalancerrule")
|
@SelectJson("loadbalancerrule")
|
||||||
|
@ -80,6 +83,7 @@ public interface LoadBalancerAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see LoadBalancerClient#createLoadBalancerRuleForPublicIP
|
* @see LoadBalancerClient#createLoadBalancerRuleForPublicIP
|
||||||
*/
|
*/
|
||||||
|
@Named("createLoadBalancerRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createLoadBalancerRule")
|
@QueryParams(keys = "command", values = "createLoadBalancerRule")
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
@ -92,6 +96,7 @@ public interface LoadBalancerAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see LoadBalancerClient#updateLoadBalancerRule
|
* @see LoadBalancerClient#updateLoadBalancerRule
|
||||||
*/
|
*/
|
||||||
|
@Named("updateLoadBalancerRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values ="updateLoadBalancerRule")
|
@QueryParams(keys = "command", values ="updateLoadBalancerRule")
|
||||||
@SelectJson("loadbalancerrule")
|
@SelectJson("loadbalancerrule")
|
||||||
|
@ -103,6 +108,7 @@ public interface LoadBalancerAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see LoadBalancerClient#deleteLoadBalancerRule
|
* @see LoadBalancerClient#deleteLoadBalancerRule
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteLoadBalancerRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteLoadBalancerRule")
|
@QueryParams(keys = "command", values = "deleteLoadBalancerRule")
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
@ -113,6 +119,7 @@ public interface LoadBalancerAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see LoadBalancerClient#assignVirtualMachinesToLoadBalancerRule(String,Iterable)
|
* @see LoadBalancerClient#assignVirtualMachinesToLoadBalancerRule(String,Iterable)
|
||||||
*/
|
*/
|
||||||
|
@Named("assignToLoadBalancerRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "assignToLoadBalancerRule")
|
@QueryParams(keys = "command", values = "assignToLoadBalancerRule")
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
|
@ -124,6 +131,7 @@ public interface LoadBalancerAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see LoadBalancerClient#assignVirtualMachinesToLoadBalancerRule(String,String[])
|
* @see LoadBalancerClient#assignVirtualMachinesToLoadBalancerRule(String,String[])
|
||||||
*/
|
*/
|
||||||
|
@Named("assignToLoadBalancerRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "assignToLoadBalancerRule")
|
@QueryParams(keys = "command", values = "assignToLoadBalancerRule")
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
|
@ -135,6 +143,7 @@ public interface LoadBalancerAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see LoadBalancerClient#removeVirtualMachinesFromLoadBalancerRule(String,Iterable)
|
* @see LoadBalancerClient#removeVirtualMachinesFromLoadBalancerRule(String,Iterable)
|
||||||
*/
|
*/
|
||||||
|
@Named("removeFromLoadBalancerRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "removeFromLoadBalancerRule")
|
@QueryParams(keys = "command", values = "removeFromLoadBalancerRule")
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
|
@ -146,6 +155,7 @@ public interface LoadBalancerAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see LoadBalancerClient#removeVirtualMachinesFromLoadBalancerRule(String,String[])
|
* @see LoadBalancerClient#removeVirtualMachinesFromLoadBalancerRule(String,String[])
|
||||||
*/
|
*/
|
||||||
|
@Named("removeFromLoadBalancerRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "removeFromLoadBalancerRule")
|
@QueryParams(keys = "command", values = "removeFromLoadBalancerRule")
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
|
@ -157,6 +167,7 @@ public interface LoadBalancerAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see LoadBalancerClient#listVirtualMachinesAssignedToLoadBalancerRule
|
* @see LoadBalancerClient#listVirtualMachinesAssignedToLoadBalancerRule
|
||||||
*/
|
*/
|
||||||
|
@Named("listLoadBalancerRuleInstances")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listLoadBalancerRuleInstances", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listLoadBalancerRuleInstances", "true" })
|
||||||
@SelectJson("loadbalancerruleinstance")
|
@SelectJson("loadbalancerruleinstance")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -58,6 +59,7 @@ public interface NATAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NATClient#listIPForwardingRules
|
* @see NATClient#listIPForwardingRules
|
||||||
*/
|
*/
|
||||||
|
@Named("listIpForwardingRules")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listIpForwardingRules", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listIpForwardingRules", "true" })
|
||||||
@SelectJson("ipforwardingrule")
|
@SelectJson("ipforwardingrule")
|
||||||
|
@ -68,6 +70,7 @@ public interface NATAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NATClient#getIPForwardingRule
|
* @see NATClient#getIPForwardingRule
|
||||||
*/
|
*/
|
||||||
|
@Named("listIpForwardingRules")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listIpForwardingRules", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listIpForwardingRules", "true" })
|
||||||
@SelectJson("ipforwardingrule")
|
@SelectJson("ipforwardingrule")
|
||||||
|
@ -79,6 +82,7 @@ public interface NATAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NATClient#getIPForwardingRulesForIPAddress
|
* @see NATClient#getIPForwardingRulesForIPAddress
|
||||||
*/
|
*/
|
||||||
|
@Named("listIpForwardingRules")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listIpForwardingRules", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listIpForwardingRules", "true" })
|
||||||
@SelectJson("ipforwardingrule")
|
@SelectJson("ipforwardingrule")
|
||||||
|
@ -88,6 +92,7 @@ public interface NATAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NATClient#getIPForwardingRulesForVirtualMachine
|
* @see NATClient#getIPForwardingRulesForVirtualMachine
|
||||||
*/
|
*/
|
||||||
|
@Named("listIpForwardingRules")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listIpForwardingRules", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listIpForwardingRules", "true" })
|
||||||
@SelectJson("ipforwardingrule")
|
@SelectJson("ipforwardingrule")
|
||||||
|
@ -97,6 +102,7 @@ public interface NATAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NATClient#createIPForwardingRule
|
* @see NATClient#createIPForwardingRule
|
||||||
*/
|
*/
|
||||||
|
@Named("createIpForwardingRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createIpForwardingRule")
|
@QueryParams(keys = "command", values = "createIpForwardingRule")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -108,6 +114,7 @@ public interface NATAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NATClient#enableStaticNATForVirtualMachine
|
* @see NATClient#enableStaticNATForVirtualMachine
|
||||||
*/
|
*/
|
||||||
|
@Named("enableStaticNat")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "enableStaticNat")
|
@QueryParams(keys = "command", values = "enableStaticNat")
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
|
@ -117,6 +124,7 @@ public interface NATAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NATClient#deleteIPForwardingRule
|
* @see NATClient#deleteIPForwardingRule
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteIpForwardingRule")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteIpForwardingRule")
|
@QueryParams(keys = "command", values = "deleteIpForwardingRule")
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
@ -127,6 +135,7 @@ public interface NATAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NATClient#disableStaticNATOnPublicIP
|
* @see NATClient#disableStaticNATOnPublicIP
|
||||||
*/
|
*/
|
||||||
|
@Named("disableStaticNat")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "disableStaticNat")
|
@QueryParams(keys = "command", values = "disableStaticNat")
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -54,6 +55,7 @@ public interface NetworkAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NetworkClient#listNetworks
|
* @see NetworkClient#listNetworks
|
||||||
*/
|
*/
|
||||||
|
@Named("listNetworks")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listNetworks", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listNetworks", "true" })
|
||||||
@SelectJson("network")
|
@SelectJson("network")
|
||||||
|
@ -64,6 +66,7 @@ public interface NetworkAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NetworkClient#getNetwork
|
* @see NetworkClient#getNetwork
|
||||||
*/
|
*/
|
||||||
|
@Named("listNetworks")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listNetworks", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listNetworks", "true" })
|
||||||
@SelectJson("network")
|
@SelectJson("network")
|
||||||
|
@ -75,6 +78,7 @@ public interface NetworkAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NetworkClient#createNetworkInZone
|
* @see NetworkClient#createNetworkInZone
|
||||||
*/
|
*/
|
||||||
|
@Named("createNetwork")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createNetwork")
|
@QueryParams(keys = "command", values = "createNetwork")
|
||||||
@SelectJson("network")
|
@SelectJson("network")
|
||||||
|
@ -86,6 +90,7 @@ public interface NetworkAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NetworkClient#deleteNetwork
|
* @see NetworkClient#deleteNetwork
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteNetwork")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteNetwork")
|
@QueryParams(keys = "command", values = "deleteNetwork")
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -57,6 +58,7 @@ public interface OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see OfferingClient#listServiceOfferings
|
* @see OfferingClient#listServiceOfferings
|
||||||
*/
|
*/
|
||||||
|
@Named("listServiceOfferings")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listServiceOfferings", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listServiceOfferings", "true" })
|
||||||
@SelectJson("serviceoffering")
|
@SelectJson("serviceoffering")
|
||||||
|
@ -67,6 +69,7 @@ public interface OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see OfferingClient#getServiceOffering
|
* @see OfferingClient#getServiceOffering
|
||||||
*/
|
*/
|
||||||
|
@Named("listServiceOfferings")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listServiceOfferings", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listServiceOfferings", "true" })
|
||||||
@SelectJson("serviceoffering")
|
@SelectJson("serviceoffering")
|
||||||
|
@ -78,6 +81,7 @@ public interface OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see OfferingClient#listDiskOfferings
|
* @see OfferingClient#listDiskOfferings
|
||||||
*/
|
*/
|
||||||
|
@Named("listDiskOfferings")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listDiskOfferings", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listDiskOfferings", "true" })
|
||||||
@SelectJson("diskoffering")
|
@SelectJson("diskoffering")
|
||||||
|
@ -88,6 +92,7 @@ public interface OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see OfferingClient#getDiskOffering
|
* @see OfferingClient#getDiskOffering
|
||||||
*/
|
*/
|
||||||
|
@Named("listDiskOfferings")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listDiskOfferings", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listDiskOfferings", "true" })
|
||||||
@SelectJson("diskoffering")
|
@SelectJson("diskoffering")
|
||||||
|
@ -99,6 +104,7 @@ public interface OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NetworkOfferingClient#listNetworkOfferings
|
* @see NetworkOfferingClient#listNetworkOfferings
|
||||||
*/
|
*/
|
||||||
|
@Named("listNetworkOfferings")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listNetworkOfferings", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listNetworkOfferings", "true" })
|
||||||
@SelectJson("networkoffering")
|
@SelectJson("networkoffering")
|
||||||
|
@ -109,6 +115,7 @@ public interface OfferingAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see NetworkOfferingClient#getNetworkOffering
|
* @see NetworkOfferingClient#getNetworkOffering
|
||||||
*/
|
*/
|
||||||
|
@Named("listNetworkOfferings")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listNetworkOfferings", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listNetworkOfferings", "true" })
|
||||||
@SelectJson("networkoffering")
|
@SelectJson("networkoffering")
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -53,6 +54,7 @@ public interface SSHKeyPairAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SSHKeyPairClient#listSSHKeyPairs
|
* @see SSHKeyPairClient#listSSHKeyPairs
|
||||||
*/
|
*/
|
||||||
|
@Named("listSSHKeyPairs")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listSSHKeyPairs", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listSSHKeyPairs", "true" })
|
||||||
@SelectJson("sshkeypair")
|
@SelectJson("sshkeypair")
|
||||||
|
@ -63,6 +65,7 @@ public interface SSHKeyPairAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SSHKeyPairClient#registerSSHKeyPair
|
* @see SSHKeyPairClient#registerSSHKeyPair
|
||||||
*/
|
*/
|
||||||
|
@Named("registerSSHKeyPair")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "registerSSHKeyPair")
|
@QueryParams(keys = "command", values = "registerSSHKeyPair")
|
||||||
@SelectJson("keypair")
|
@SelectJson("keypair")
|
||||||
|
@ -72,6 +75,7 @@ public interface SSHKeyPairAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SSHKeyPairClient#createSSHKeyPair
|
* @see SSHKeyPairClient#createSSHKeyPair
|
||||||
*/
|
*/
|
||||||
|
@Named("createSSHKeyPair")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createSSHKeyPair")
|
@QueryParams(keys = "command", values = "createSSHKeyPair")
|
||||||
@SelectJson("keypair")
|
@SelectJson("keypair")
|
||||||
|
@ -81,6 +85,7 @@ public interface SSHKeyPairAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SSHKeyPairClient#getSSHKeyPair
|
* @see SSHKeyPairClient#getSSHKeyPair
|
||||||
*/
|
*/
|
||||||
|
@Named("listSSHKeyPairs")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listSSHKeyPairs", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listSSHKeyPairs", "true" })
|
||||||
@SelectJson("sshkeypair")
|
@SelectJson("sshkeypair")
|
||||||
|
@ -92,6 +97,7 @@ public interface SSHKeyPairAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SSHKeyPairClient#deleteSSHKeyPair
|
* @see SSHKeyPairClient#deleteSSHKeyPair
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteSSHKeyPair")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteSSHKeyPair")
|
@QueryParams(keys = "command", values = "deleteSSHKeyPair")
|
||||||
@Fallback(VoidOnNotFoundOr404.class)
|
@Fallback(VoidOnNotFoundOr404.class)
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -59,6 +60,7 @@ public interface SecurityGroupAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SecurityGroupClient#listSecurityGroups
|
* @see SecurityGroupClient#listSecurityGroups
|
||||||
*/
|
*/
|
||||||
|
@Named("listSecurityGroups")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listSecurityGroups", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listSecurityGroups", "true" })
|
||||||
@SelectJson("securitygroup")
|
@SelectJson("securitygroup")
|
||||||
|
@ -69,6 +71,7 @@ public interface SecurityGroupAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SecurityGroupClient#getSecurityGroup
|
* @see SecurityGroupClient#getSecurityGroup
|
||||||
*/
|
*/
|
||||||
|
@Named("listSecurityGroups")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listSecurityGroups", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listSecurityGroups", "true" })
|
||||||
@SelectJson("securitygroup")
|
@SelectJson("securitygroup")
|
||||||
|
@ -80,6 +83,7 @@ public interface SecurityGroupAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SecurityGroupClient#createSecurityGroup
|
* @see SecurityGroupClient#createSecurityGroup
|
||||||
*/
|
*/
|
||||||
|
@Named("createSecurityGroup")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createSecurityGroup")
|
@QueryParams(keys = "command", values = "createSecurityGroup")
|
||||||
@SelectJson("securitygroup")
|
@SelectJson("securitygroup")
|
||||||
|
@ -89,6 +93,7 @@ public interface SecurityGroupAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SecurityGroupClient#authorizeIngressPortsToCIDRs
|
* @see SecurityGroupClient#authorizeIngressPortsToCIDRs
|
||||||
*/
|
*/
|
||||||
|
@Named("authorizeSecurityGroupIngress")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "authorizeSecurityGroupIngress")
|
@QueryParams(keys = "command", values = "authorizeSecurityGroupIngress")
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
@ -102,6 +107,7 @@ public interface SecurityGroupAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SecurityGroupClient#authorizeIngressPortsToSecurityGroups
|
* @see SecurityGroupClient#authorizeIngressPortsToSecurityGroups
|
||||||
*/
|
*/
|
||||||
|
@Named("authorizeSecurityGroupIngress")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "authorizeSecurityGroupIngress")
|
@QueryParams(keys = "command", values = "authorizeSecurityGroupIngress")
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
@ -115,6 +121,7 @@ public interface SecurityGroupAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SecurityGroupClient#authorizeIngressICMPToCIDRs
|
* @see SecurityGroupClient#authorizeIngressICMPToCIDRs
|
||||||
*/
|
*/
|
||||||
|
@Named("authorizeSecurityGroupIngress")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "protocol" }, values = { "authorizeSecurityGroupIngress", "ICMP" })
|
@QueryParams(keys = { "command", "protocol" }, values = { "authorizeSecurityGroupIngress", "ICMP" })
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
@ -127,6 +134,7 @@ public interface SecurityGroupAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SecurityGroupClient#authorizeIngressICMPToSecurityGroups
|
* @see SecurityGroupClient#authorizeIngressICMPToSecurityGroups
|
||||||
*/
|
*/
|
||||||
|
@Named("authorizeSecurityGroupIngress")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "protocol" }, values = { "authorizeSecurityGroupIngress", "ICMP" })
|
@QueryParams(keys = { "command", "protocol" }, values = { "authorizeSecurityGroupIngress", "ICMP" })
|
||||||
@SelectJson("jobid")
|
@SelectJson("jobid")
|
||||||
|
@ -139,6 +147,7 @@ public interface SecurityGroupAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SecurityGroupClient#revokeIngressRule
|
* @see SecurityGroupClient#revokeIngressRule
|
||||||
*/
|
*/
|
||||||
|
@Named("revokeSecurityGroupIngress")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "revokeSecurityGroupIngress")
|
@QueryParams(keys = "command", values = "revokeSecurityGroupIngress")
|
||||||
@Fallback(VoidOnNotFoundOr404.class)
|
@Fallback(VoidOnNotFoundOr404.class)
|
||||||
|
@ -149,6 +158,7 @@ public interface SecurityGroupAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SecurityGroupClient#deleteSecurityGroup
|
* @see SecurityGroupClient#deleteSecurityGroup
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteSecurityGroup")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteSecurityGroup")
|
@QueryParams(keys = "command", values = "deleteSecurityGroup")
|
||||||
@Fallback(VoidOnNotFoundOr404.class)
|
@Fallback(VoidOnNotFoundOr404.class)
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -47,6 +48,7 @@ public interface SessionAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SessionClient#loginUserInDomainWithHashOfPassword
|
* @see SessionClient#loginUserInDomainWithHashOfPassword
|
||||||
*/
|
*/
|
||||||
|
@Named("login")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "login")
|
@QueryParams(keys = "command", values = "login")
|
||||||
@ResponseParser(ParseLoginResponseFromHttpResponse.class)
|
@ResponseParser(ParseLoginResponseFromHttpResponse.class)
|
||||||
|
@ -58,6 +60,7 @@ public interface SessionAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see SessionClient#logoutUser
|
* @see SessionClient#logoutUser
|
||||||
*/
|
*/
|
||||||
|
@Named("logout")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "logout")
|
@QueryParams(keys = "command", values = "logout")
|
||||||
@Fallback(VoidOnNotFoundOr404.class)
|
@Fallback(VoidOnNotFoundOr404.class)
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -67,6 +68,7 @@ public interface SnapshotAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return an asynchronous job structure
|
* @return an asynchronous job structure
|
||||||
*/
|
*/
|
||||||
|
@Named("createSnapshot")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "createSnapshot")
|
@QueryParams(keys = "command", values = "createSnapshot")
|
||||||
|
@ -79,6 +81,7 @@ public interface SnapshotAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return the snapshots matching the query
|
* @return the snapshots matching the query
|
||||||
*/
|
*/
|
||||||
|
@Named("listSnapshots")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listSnapshots", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listSnapshots", "true" })
|
||||||
|
@ -93,6 +96,7 @@ public interface SnapshotAsyncClient {
|
||||||
* @param id the snapshot ID
|
* @param id the snapshot ID
|
||||||
* @return the snapshot with the requested ID
|
* @return the snapshot with the requested ID
|
||||||
*/
|
*/
|
||||||
|
@Named("listSnapshots")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listSnapshots", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listSnapshots", "true" })
|
||||||
|
@ -107,6 +111,7 @@ public interface SnapshotAsyncClient {
|
||||||
* @param id The ID of the snapshot
|
* @param id The ID of the snapshot
|
||||||
* @return an asynchronous job structure
|
* @return an asynchronous job structure
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteSnapshot")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "deleteSnapshot")
|
@QueryParams(keys = "command", values = "deleteSnapshot")
|
||||||
|
@ -122,6 +127,7 @@ public interface SnapshotAsyncClient {
|
||||||
* @param volumeId the ID of the disk volume
|
* @param volumeId the ID of the disk volume
|
||||||
* @return the newly-created snapshot policy
|
* @return the newly-created snapshot policy
|
||||||
*/
|
*/
|
||||||
|
@Named("createSnapshotPolicy")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -134,6 +140,7 @@ public interface SnapshotAsyncClient {
|
||||||
* @param id The ID of the snapshot policy
|
* @param id The ID of the snapshot policy
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteSnapshotPolicies")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "deleteSnapshotPolicies")
|
@QueryParams(keys = "command", values = "deleteSnapshotPolicies")
|
||||||
|
@ -146,6 +153,7 @@ public interface SnapshotAsyncClient {
|
||||||
* @param id IDs of snapshot policies
|
* @param id IDs of snapshot policies
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteSnapshotPolicies")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = "command", values = "deleteSnapshotPolicies")
|
@QueryParams(keys = "command", values = "deleteSnapshotPolicies")
|
||||||
|
@ -159,6 +167,7 @@ public interface SnapshotAsyncClient {
|
||||||
* @param options optional arguments
|
* @param options optional arguments
|
||||||
* @return the snapshot policies matching the query
|
* @return the snapshot policies matching the query
|
||||||
*/
|
*/
|
||||||
|
@Named("listSnapshotPolicies")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listSnapshotPolicies", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listSnapshotPolicies", "true" })
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -69,6 +70,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#createTemplate
|
* @see TemplateClient#createTemplate
|
||||||
*/
|
*/
|
||||||
|
@Named("createTemplate")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createTemplate")
|
@QueryParams(keys = "command", values = "createTemplate")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -80,6 +82,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#registerTemplate
|
* @see TemplateClient#registerTemplate
|
||||||
*/
|
*/
|
||||||
|
@Named("registerTemplate")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "registerTemplate")
|
@QueryParams(keys = "command", values = "registerTemplate")
|
||||||
@SelectJson("template")
|
@SelectJson("template")
|
||||||
|
@ -92,6 +95,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#updateTemplate
|
* @see TemplateClient#updateTemplate
|
||||||
*/
|
*/
|
||||||
|
@Named("updateTemplate")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateTemplate")
|
@QueryParams(keys = "command", values = "updateTemplate")
|
||||||
@SelectJson("template")
|
@SelectJson("template")
|
||||||
|
@ -101,6 +105,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#copyTemplate
|
* @see TemplateClient#copyTemplate
|
||||||
*/
|
*/
|
||||||
|
@Named("copyTemplate")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "copyTemplate")
|
@QueryParams(keys = "command", values = "copyTemplate")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -111,6 +116,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#deleteTemplate
|
* @see TemplateClient#deleteTemplate
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteTemplate")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteTemplate")
|
@QueryParams(keys = "command", values = "deleteTemplate")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -120,6 +126,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#listTemplates
|
* @see TemplateClient#listTemplates
|
||||||
*/
|
*/
|
||||||
|
@Named("listTemplates")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll", "templatefilter" }, values = { "listTemplates", "true", "executable" })
|
@QueryParams(keys = { "command", "listAll", "templatefilter" }, values = { "listTemplates", "true", "executable" })
|
||||||
@SelectJson("template")
|
@SelectJson("template")
|
||||||
|
@ -130,6 +137,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#listTemplates(ListTemplatesOptions)
|
* @see TemplateClient#listTemplates(ListTemplatesOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("listTemplates")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listTemplates", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listTemplates", "true" })
|
||||||
@SelectJson("template")
|
@SelectJson("template")
|
||||||
|
@ -140,6 +148,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#getTemplate
|
* @see TemplateClient#getTemplate
|
||||||
*/
|
*/
|
||||||
|
@Named("listTemplates")
|
||||||
@GET
|
@GET
|
||||||
// templatefilter required in at least 2.2.8 version
|
// templatefilter required in at least 2.2.8 version
|
||||||
@QueryParams(keys = { "command", "listAll", "templatefilter" }, values = { "listTemplates", "true", "executable" })
|
@QueryParams(keys = { "command", "listAll", "templatefilter" }, values = { "listTemplates", "true", "executable" })
|
||||||
|
@ -152,6 +161,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#updateTemplatePermissions
|
* @see TemplateClient#updateTemplatePermissions
|
||||||
*/
|
*/
|
||||||
|
@Named("updateTemplatePermissions")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateTemplatePermissions")
|
@QueryParams(keys = "command", values = "updateTemplatePermissions")
|
||||||
ListenableFuture<Void> updateTemplatePermissions(@QueryParam("id") String id,
|
ListenableFuture<Void> updateTemplatePermissions(@QueryParam("id") String id,
|
||||||
|
@ -160,6 +170,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#listTemplatePermissions
|
* @see TemplateClient#listTemplatePermissions
|
||||||
*/
|
*/
|
||||||
|
@Named("listTemplatePermissions")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listTemplatePermissions", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listTemplatePermissions", "true" })
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -170,6 +181,7 @@ public interface TemplateAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see TemplateClient#extractTemplate
|
* @see TemplateClient#extractTemplate
|
||||||
*/
|
*/
|
||||||
|
@Named("extractTemplate")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "extractTemplate")
|
@QueryParams(keys = "command", values = "extractTemplate")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -58,6 +59,7 @@ public interface VMGroupAsyncClient {
|
||||||
* @param options if present, how to constrain the list.
|
* @param options if present, how to constrain the list.
|
||||||
* @return VM groups matching query, or empty set, if no zones are found
|
* @return VM groups matching query, or empty set, if no zones are found
|
||||||
*/
|
*/
|
||||||
|
@Named("listInstanceGroups")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listInstanceGroups", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listInstanceGroups", "true" })
|
||||||
@SelectJson("instancegroup")
|
@SelectJson("instancegroup")
|
||||||
|
@ -68,6 +70,7 @@ public interface VMGroupAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see VMGroupClient#getInstanceGroup
|
* @see VMGroupClient#getInstanceGroup
|
||||||
*/
|
*/
|
||||||
|
@Named("listInstanceGroups")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listInstanceGroups", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listInstanceGroups", "true" })
|
||||||
@SelectJson("instancegroup")
|
@SelectJson("instancegroup")
|
||||||
|
@ -83,6 +86,7 @@ public interface VMGroupAsyncClient {
|
||||||
* @param options optional parameters
|
* @param options optional parameters
|
||||||
* @return the new VMGroup
|
* @return the new VMGroup
|
||||||
*/
|
*/
|
||||||
|
@Named("createInstanceGroup")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createInstanceGroup")
|
@QueryParams(keys = "command", values = "createInstanceGroup")
|
||||||
@SelectJson("instancegroup")
|
@SelectJson("instancegroup")
|
||||||
|
@ -95,6 +99,7 @@ public interface VMGroupAsyncClient {
|
||||||
* @param name the new name of the group
|
* @param name the new name of the group
|
||||||
* @return the modified VMGroup
|
* @return the modified VMGroup
|
||||||
*/
|
*/
|
||||||
|
@Named("updateInstanceGroup")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "updateInstanceGroup")
|
@QueryParams(keys = "command", values = "updateInstanceGroup")
|
||||||
@SelectJson("instancegroup")
|
@SelectJson("instancegroup")
|
||||||
|
@ -107,6 +112,7 @@ public interface VMGroupAsyncClient {
|
||||||
* @param id the ID of the VM group
|
* @param id the ID of the VM group
|
||||||
* @return a future with a void data type
|
* @return a future with a void data type
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteInstanceGroup")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteInstanceGroup")
|
@QueryParams(keys = "command", values = "deleteInstanceGroup")
|
||||||
@Fallback(VoidOnNotFoundOr404.class)
|
@Fallback(VoidOnNotFoundOr404.class)
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -55,6 +56,7 @@ public interface VolumeAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see VolumeClient#listVolumes(org.jclouds.cloudstack.options.ListVolumesOptions...)
|
* @see VolumeClient#listVolumes(org.jclouds.cloudstack.options.ListVolumesOptions...)
|
||||||
*/
|
*/
|
||||||
|
@Named("listVolumes")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listVolumes", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listVolumes", "true" })
|
||||||
@SelectJson("volume")
|
@SelectJson("volume")
|
||||||
|
@ -65,6 +67,7 @@ public interface VolumeAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see VolumeClient#getVolume(String)
|
* @see VolumeClient#getVolume(String)
|
||||||
*/
|
*/
|
||||||
|
@Named("listVolumes")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listVolumes", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listVolumes", "true" })
|
||||||
|
@ -77,6 +80,7 @@ public interface VolumeAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see VolumeClient#createVolumeFromDiskOfferingInZone(String, String, String)
|
* @see VolumeClient#createVolumeFromDiskOfferingInZone(String, String, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("createVolume")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createVolume")
|
@QueryParams(keys = "command", values = "createVolume")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -88,6 +92,7 @@ public interface VolumeAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see VolumeClient#createVolumeFromSnapshotInZone(String, String, String)
|
* @see VolumeClient#createVolumeFromSnapshotInZone(String, String, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("createVolume")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "createVolume")
|
@QueryParams(keys = "command", values = "createVolume")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -99,6 +104,7 @@ public interface VolumeAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see VolumeClient#attachVolume(String, String)
|
* @see VolumeClient#attachVolume(String, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("attachVolume")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "attachVolume")
|
@QueryParams(keys = "command", values = "attachVolume")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -109,6 +115,7 @@ public interface VolumeAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see VolumeClient#detachVolume(String)
|
* @see VolumeClient#detachVolume(String)
|
||||||
*/
|
*/
|
||||||
|
@Named("detachVolume")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "detachVolume")
|
@QueryParams(keys = "command", values = "detachVolume")
|
||||||
@Unwrap
|
@Unwrap
|
||||||
|
@ -118,6 +125,7 @@ public interface VolumeAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see VolumeClient#deleteVolume(String)
|
* @see VolumeClient#deleteVolume(String)
|
||||||
*/
|
*/
|
||||||
|
@Named("deleteVolume")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = "command", values = "deleteVolume")
|
@QueryParams(keys = "command", values = "deleteVolume")
|
||||||
@Fallback(VoidOnNotFoundOr404.class)
|
@Fallback(VoidOnNotFoundOr404.class)
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
@ -53,6 +54,7 @@ public interface ZoneAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see ZoneClient#listZones
|
* @see ZoneClient#listZones
|
||||||
*/
|
*/
|
||||||
|
@Named("listZones")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listZones", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listZones", "true" })
|
||||||
@SelectJson("zone")
|
@SelectJson("zone")
|
||||||
|
@ -63,6 +65,7 @@ public interface ZoneAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see ZoneClient#getZone
|
* @see ZoneClient#getZone
|
||||||
*/
|
*/
|
||||||
|
@Named("listZones")
|
||||||
@GET
|
@GET
|
||||||
@QueryParams(keys = { "command", "listAll" }, values = { "listZones", "true" })
|
@QueryParams(keys = { "command", "listAll" }, values = { "listZones", "true" })
|
||||||
@SelectJson("zone")
|
@SelectJson("zone")
|
||||||
|
|
Loading…
Reference in New Issue