mirror of https://github.com/apache/jclouds.git
Issue #1184: Changes for Abiquo. @Named annotations in all async api methods.
This commit is contained in:
parent
dce830adb9
commit
94c5902cc3
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
package org.jclouds.abiquo.features;
|
package org.jclouds.abiquo.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.DELETE;
|
import javax.ws.rs.DELETE;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
|
@ -67,6 +68,7 @@ public interface AdminAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see AdminApi#getCurrentUser()
|
* @see AdminApi#getCurrentUser()
|
||||||
*/
|
*/
|
||||||
|
@Named("user:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/login")
|
@Path("/login")
|
||||||
@Consumes(UserDto.BASE_MEDIA_TYPE)
|
@Consumes(UserDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -78,6 +80,7 @@ public interface AdminAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see AdminApi#listRoles()
|
* @see AdminApi#listRoles()
|
||||||
*/
|
*/
|
||||||
|
@Named("role:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/admin/roles")
|
@Path("/admin/roles")
|
||||||
@Consumes(RolesDto.BASE_MEDIA_TYPE)
|
@Consumes(RolesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -87,6 +90,7 @@ public interface AdminAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see AdminApi#listRoles(Enterprise enterprise)
|
* @see AdminApi#listRoles(Enterprise enterprise)
|
||||||
*/
|
*/
|
||||||
|
@Named("role:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/admin/roles")
|
@Path("/admin/roles")
|
||||||
@Consumes(RolesDto.BASE_MEDIA_TYPE)
|
@Consumes(RolesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -97,6 +101,7 @@ public interface AdminAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see AdminApi#getRole(UserDto)
|
* @see AdminApi#getRole(UserDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("role:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(RoleDto.BASE_MEDIA_TYPE)
|
@Consumes(RoleDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -106,6 +111,7 @@ public interface AdminAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see AdminApi#getRole(Integer)
|
* @see AdminApi#getRole(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("role:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/admin/roles/{role}")
|
@Path("/admin/roles/{role}")
|
||||||
@Consumes(RoleDto.BASE_MEDIA_TYPE)
|
@Consumes(RoleDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -116,12 +122,14 @@ public interface AdminAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see AdminApi#deleteRole(RoleDto)
|
* @see AdminApi#deleteRole(RoleDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("role:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteRole(@EndpointLink("edit") @BinderParam(BindToPath.class) RoleDto role);
|
ListenableFuture<Void> deleteRole(@EndpointLink("edit") @BinderParam(BindToPath.class) RoleDto role);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see AdminApi#updateRole(RoleDto)
|
* @see AdminApi#updateRole(RoleDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("role:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(RoleDto.BASE_MEDIA_TYPE)
|
@Produces(RoleDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(RoleDto.BASE_MEDIA_TYPE)
|
@Consumes(RoleDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -131,6 +139,7 @@ public interface AdminAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see AdminApi#createRole(RoleDto)
|
* @see AdminApi#createRole(RoleDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("role:create")
|
||||||
@POST
|
@POST
|
||||||
@Path("/admin/roles")
|
@Path("/admin/roles")
|
||||||
@Produces(RoleDto.BASE_MEDIA_TYPE)
|
@Produces(RoleDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -141,6 +150,7 @@ public interface AdminAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see AdminApi#listPrivileges(RoleDto)
|
* @see AdminApi#listPrivileges(RoleDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("privilege:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(PrivilegesDto.BASE_MEDIA_TYPE)
|
@Consumes(PrivilegesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
package org.jclouds.abiquo.features;
|
package org.jclouds.abiquo.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.DELETE;
|
import javax.ws.rs.DELETE;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
|
@ -116,6 +117,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listVirtualDatacenters(VirtualDatacenterOptions)
|
* @see CloudApi#listVirtualDatacenters(VirtualDatacenterOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/virtualdatacenters")
|
@Path("/virtualdatacenters")
|
||||||
@Consumes(VirtualDatacentersDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualDatacentersDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -125,6 +127,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getVirtualDatacenter(Integer)
|
* @see CloudApi#getVirtualDatacenter(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/virtualdatacenters/{virtualdatacenter}")
|
@Path("/virtualdatacenters/{virtualdatacenter}")
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
|
@ -137,6 +140,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#createVirtualDatacenter(VirtualDatacenterDto, Datacenter,
|
* @see CloudApi#createVirtualDatacenter(VirtualDatacenterDto, Datacenter,
|
||||||
* Enterprise)
|
* Enterprise)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:create")
|
||||||
@POST
|
@POST
|
||||||
@Path("/virtualdatacenters")
|
@Path("/virtualdatacenters")
|
||||||
@Consumes(VirtualDatacenterDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualDatacenterDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -150,6 +154,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#updateVirtualDatacenter(VirtualDatacenterDto)
|
* @see CloudApi#updateVirtualDatacenter(VirtualDatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes(VirtualDatacenterDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualDatacenterDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VirtualDatacenterDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualDatacenterDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -160,6 +165,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#deleteVirtualDatacenter(VirtualDatacenterDto)
|
* @see CloudApi#deleteVirtualDatacenter(VirtualDatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteVirtualDatacenter(
|
ListenableFuture<Void> deleteVirtualDatacenter(
|
||||||
@EndpointLink("edit") @BinderParam(BindToPath.class) VirtualDatacenterDto virtualDatacenter);
|
@EndpointLink("edit") @BinderParam(BindToPath.class) VirtualDatacenterDto virtualDatacenter);
|
||||||
|
@ -167,6 +173,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listAvailableTemplates(VirtualDatacenterDto)
|
* @see CloudApi#listAvailableTemplates(VirtualDatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:listtemplates")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualMachineTemplatesDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineTemplatesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -177,6 +184,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#listAvailableTemplates(VirtualDatacenterDto,
|
* @see CloudApi#listAvailableTemplates(VirtualDatacenterDto,
|
||||||
* VirtualMachineTemplateOptions)
|
* VirtualMachineTemplateOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:listtemplates")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualMachineTemplatesDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineTemplatesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -187,6 +195,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listStorageTiers(VirtualDatacenterDto)
|
* @see CloudApi#listStorageTiers(VirtualDatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:listtiers")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(TiersDto.BASE_MEDIA_TYPE)
|
@Consumes(TiersDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -197,6 +206,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getStorageTier(VirtualDatacenterDto, Integer)
|
* @see CloudApi#getStorageTier(VirtualDatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:gettier")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
|
@ -211,6 +221,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listAvailablePublicIps(VirtualDatacenterDto, IpOptions)
|
* @see CloudApi#listAvailablePublicIps(VirtualDatacenterDto, IpOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:listavailablepublicips")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(PublicIpsDto.BASE_MEDIA_TYPE)
|
@Consumes(PublicIpsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -221,6 +232,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listPurchasedPublicIps(VirtualDatacenterDto, IpOptions)
|
* @see CloudApi#listPurchasedPublicIps(VirtualDatacenterDto, IpOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:listpurchasedpublicips")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(PublicIpsDto.BASE_MEDIA_TYPE)
|
@Consumes(PublicIpsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -231,6 +243,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#purchasePublicIp(PublicIpDto)
|
* @see CloudApi#purchasePublicIp(PublicIpDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:purchasepublicip")
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes(PublicIpDto.BASE_MEDIA_TYPE)
|
@Consumes(PublicIpDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -240,6 +253,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#releasePublicIp(PublicIpDto)
|
* @see CloudApi#releasePublicIp(PublicIpDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:releasepublicip")
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes(PublicIpDto.BASE_MEDIA_TYPE)
|
@Consumes(PublicIpDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -251,6 +265,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listPrivateNetworks(VirtualDatacenter)
|
* @see CloudApi#listPrivateNetworks(VirtualDatacenter)
|
||||||
*/
|
*/
|
||||||
|
@Named("privatenetwork:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VLANNetworksDto.BASE_MEDIA_TYPE)
|
@Consumes(VLANNetworksDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -260,6 +275,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getPrivateNetwork(VirtualDatacenterDto, Integer)
|
* @see CloudApi#getPrivateNetwork(VirtualDatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("privatenetwork:get")
|
||||||
@GET
|
@GET
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
@Consumes(VLANNetworkDto.BASE_MEDIA_TYPE)
|
@Consumes(VLANNetworkDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -271,6 +287,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#createPrivateNetwork(VirtualDatacenterDto, VLANNetworkDto)
|
* @see CloudApi#createPrivateNetwork(VirtualDatacenterDto, VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("privatenetwork:create")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(VLANNetworkDto.BASE_MEDIA_TYPE)
|
@Consumes(VLANNetworkDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VLANNetworkDto.BASE_MEDIA_TYPE)
|
@Produces(VLANNetworkDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -282,6 +299,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#updatePrivateNetwork(VLANNetworkDto)
|
* @see CloudApi#updatePrivateNetwork(VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("privatenetwork:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes(VLANNetworkDto.BASE_MEDIA_TYPE)
|
@Consumes(VLANNetworkDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VLANNetworkDto.BASE_MEDIA_TYPE)
|
@Produces(VLANNetworkDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -292,6 +310,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#deletePrivateNetwork(VLANNetworkDto)
|
* @see CloudApi#deletePrivateNetwork(VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("privatenetwork:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deletePrivateNetwork(
|
ListenableFuture<Void> deletePrivateNetwork(
|
||||||
@EndpointLink("edit") @BinderParam(BindToPath.class) VLANNetworkDto privateNetwork);
|
@EndpointLink("edit") @BinderParam(BindToPath.class) VLANNetworkDto privateNetwork);
|
||||||
|
@ -299,6 +318,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getDefaultNetwork(VirtualDatacenterDto)
|
* @see CloudApi#getDefaultNetwork(VirtualDatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:getdefaultnetwork")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VLANNetworkDto.BASE_MEDIA_TYPE)
|
@Consumes(VLANNetworkDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -308,6 +328,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#setDefaultNetwork(VirtualDatacenterDto, VLANNetworkDto)
|
* @see CloudApi#setDefaultNetwork(VirtualDatacenterDto, VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vdc:setdefaultnetwork")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(LinksDto.BASE_MEDIA_TYPE)
|
@Produces(LinksDto.BASE_MEDIA_TYPE)
|
||||||
ListenableFuture<Void> setDefaultNetwork(
|
ListenableFuture<Void> setDefaultNetwork(
|
||||||
|
@ -319,6 +340,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listPrivateNetworkIps(VLANNetworkDto)
|
* @see CloudApi#listPrivateNetworkIps(VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("privatenetwork:listips")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(PrivateIpsDto.BASE_MEDIA_TYPE)
|
@Consumes(PrivateIpsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -328,6 +350,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listPrivateNetworkIps(VLANNetworkDto, IpOptions)
|
* @see CloudApi#listPrivateNetworkIps(VLANNetworkDto, IpOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("privatenetwork:listips")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(PrivateIpsDto.BASE_MEDIA_TYPE)
|
@Consumes(PrivateIpsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -337,6 +360,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getPrivateNetworkIp(VLANNetworkDto, Integer)
|
* @see CloudApi#getPrivateNetworkIp(VLANNetworkDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("privatenetwork:getip")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(PrivateIpDto.BASE_MEDIA_TYPE)
|
@Consumes(PrivateIpDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -349,6 +373,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listVirtualAppliances(VirtualDatacenterDto)
|
* @see CloudApi#listVirtualAppliances(VirtualDatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vapp:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualAppliancesDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualAppliancesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -358,6 +383,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getVirtualAppliance(VirtualDatacenterDto, Integer)
|
* @see CloudApi#getVirtualAppliance(VirtualDatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("vapp:get")
|
||||||
@GET
|
@GET
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
@Consumes(VirtualApplianceDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualApplianceDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -369,6 +395,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getVirtualApplianceState(VirtualApplianceDto)
|
* @see CloudApi#getVirtualApplianceState(VirtualApplianceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vapp:getstate")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualApplianceStateDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualApplianceStateDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -379,6 +406,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#createVirtualAppliance(VirtualDatacenterDto,
|
* @see CloudApi#createVirtualAppliance(VirtualDatacenterDto,
|
||||||
* VirtualApplianceDto)
|
* VirtualApplianceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vapp:create")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(VirtualApplianceDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualApplianceDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VirtualApplianceDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualApplianceDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -390,6 +418,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#updateVirtualAppliance(VirtualApplianceDto)
|
* @see CloudApi#updateVirtualAppliance(VirtualApplianceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vapp:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes(VirtualApplianceDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualApplianceDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VirtualApplianceDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualApplianceDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -400,6 +429,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#deleteVirtualAppliance(VirtualApplianceDto)
|
* @see CloudApi#deleteVirtualAppliance(VirtualApplianceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vapp:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteVirtualAppliance(
|
ListenableFuture<Void> deleteVirtualAppliance(
|
||||||
@EndpointLink("edit") @BinderParam(BindToPath.class) VirtualApplianceDto virtualAppliance);
|
@EndpointLink("edit") @BinderParam(BindToPath.class) VirtualApplianceDto virtualAppliance);
|
||||||
|
@ -408,6 +438,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#deleteVirtualAppliance(VirtualApplianceDto,
|
* @see CloudApi#deleteVirtualAppliance(VirtualApplianceDto,
|
||||||
* VirtualApplianceOptions)
|
* VirtualApplianceOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("vapp:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteVirtualAppliance(
|
ListenableFuture<Void> deleteVirtualAppliance(
|
||||||
@EndpointLink("edit") @BinderParam(BindToPath.class) VirtualApplianceDto virtualAppliance,
|
@EndpointLink("edit") @BinderParam(BindToPath.class) VirtualApplianceDto virtualAppliance,
|
||||||
|
@ -417,6 +448,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#deployVirtualAppliance(VirtualApplianceDto,
|
* @see CloudApi#deployVirtualAppliance(VirtualApplianceDto,
|
||||||
* VirtualMachineTaskDto)
|
* VirtualMachineTaskDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vapp:deploy")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VirtualMachineTaskDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualMachineTaskDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -429,6 +461,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#undeployVirtualAppliance(VirtualApplianceDto,
|
* @see CloudApi#undeployVirtualAppliance(VirtualApplianceDto,
|
||||||
* VirtualMachineTaskDto)
|
* VirtualMachineTaskDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vapp:undeploy")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VirtualMachineTaskDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualMachineTaskDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -440,6 +473,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getVirtualAppliancePrice(VirtualApplianceDto)
|
* @see CloudApi#getVirtualAppliancePrice(VirtualApplianceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vapp:gerprice")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.TEXT_PLAIN)
|
@Consumes(MediaType.TEXT_PLAIN)
|
||||||
@ResponseParser(ReturnStringIf2xx.class)
|
@ResponseParser(ReturnStringIf2xx.class)
|
||||||
|
@ -451,6 +485,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listVirtualMachines(VirtualApplianceDto)
|
* @see CloudApi#listVirtualMachines(VirtualApplianceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualMachinesWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachinesWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -461,6 +496,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#listVirtualMachines(VirtualApplianceDto,
|
* @see CloudApi#listVirtualMachines(VirtualApplianceDto,
|
||||||
* VirtualMachineOptions)
|
* VirtualMachineOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualMachinesWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachinesWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -471,6 +507,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getVirtualMachine(VirtualApplianceDto, Integer)
|
* @see CloudApi#getVirtualMachine(VirtualApplianceDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:get")
|
||||||
@GET
|
@GET
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
@Consumes(VirtualMachineWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -483,6 +520,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#createVirtualMachine(VirtualApplianceDto,
|
* @see CloudApi#createVirtualMachine(VirtualApplianceDto,
|
||||||
* VirtualMachineWithNodeExtendedDto)
|
* VirtualMachineWithNodeExtendedDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:create")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(VirtualMachineWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VirtualMachineWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualMachineWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -494,6 +532,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#deleteVirtualMachine(VirtualMachineDto)
|
* @see CloudApi#deleteVirtualMachine(VirtualMachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteVirtualMachine(
|
ListenableFuture<Void> deleteVirtualMachine(
|
||||||
@EndpointLink("edit") @BinderParam(BindToPath.class) VirtualMachineDto virtualMachine);
|
@EndpointLink("edit") @BinderParam(BindToPath.class) VirtualMachineDto virtualMachine);
|
||||||
|
@ -501,6 +540,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#updateVirtualMachine(VirtualMachineWithNodeExtendedDto)
|
* @see CloudApi#updateVirtualMachine(VirtualMachineWithNodeExtendedDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:update")
|
||||||
@PUT
|
@PUT
|
||||||
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -512,6 +552,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#updateVirtualMachine(VirtualMachineDto,
|
* @see CloudApi#updateVirtualMachine(VirtualMachineDto,
|
||||||
* VirtualMachineOptions)
|
* VirtualMachineOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:update")
|
||||||
@PUT
|
@PUT
|
||||||
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -524,6 +565,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#changeVirtualMachineState(VirtualMachineDto,
|
* @see CloudApi#changeVirtualMachineState(VirtualMachineDto,
|
||||||
* VirtualMachineStateDto)
|
* VirtualMachineStateDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:changestate")
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VirtualMachineStateDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualMachineStateDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -535,6 +577,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getVirtualMachineState(VirtualMachineDto)
|
* @see CloudApi#getVirtualMachineState(VirtualMachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:getstate")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualMachineStateDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineStateDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -544,6 +587,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listNetworkConfigurations(VirtualMachineDto)
|
* @see CloudApi#listNetworkConfigurations(VirtualMachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:listnetworkconfigurations")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VMNetworkConfigurationsDto.BASE_MEDIA_TYPE)
|
@Consumes(VMNetworkConfigurationsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -554,6 +598,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#setGatewayNetwork(VirtualMachineDto,
|
* @see CloudApi#setGatewayNetwork(VirtualMachineDto,
|
||||||
* VMNetworkConfigurationDto)
|
* VMNetworkConfigurationDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:setgateway")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(LinksDto.BASE_MEDIA_TYPE)
|
@Produces(LinksDto.BASE_MEDIA_TYPE)
|
||||||
ListenableFuture<Void> setGatewayNetwork(
|
ListenableFuture<Void> setGatewayNetwork(
|
||||||
|
@ -563,6 +608,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#rebootVirtualMachine(VirtualMachineDto)
|
* @see CloudApi#rebootVirtualMachine(VirtualMachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:reboot")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -574,6 +620,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getVirtualMachineTemplate(VirtualMachineTemplateDto)
|
* @see CloudApi#getVirtualMachineTemplate(VirtualMachineTemplateDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:gettemplate")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualMachineTemplateDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineTemplateDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -583,6 +630,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listAttachedVolumes(VirtualMachineDto)
|
* @see CloudApi#listAttachedVolumes(VirtualMachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:listvolumes")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VolumesManagementDto.BASE_MEDIA_TYPE)
|
@Consumes(VolumesManagementDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -592,6 +640,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#detachAllVolumes(VirtualMachineDto)
|
* @see CloudApi#detachAllVolumes(VirtualMachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:detachvolumes")
|
||||||
@DELETE
|
@DELETE
|
||||||
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -602,6 +651,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#replaceVolumes(VirtualMachineDto, VirtualMachineOptions,
|
* @see CloudApi#replaceVolumes(VirtualMachineDto, VirtualMachineOptions,
|
||||||
* VolumeManagementDto...)
|
* VolumeManagementDto...)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:changevolumes")
|
||||||
@PUT
|
@PUT
|
||||||
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -613,6 +663,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listAttachedHardDisks(VirtualMachineDto)
|
* @see CloudApi#listAttachedHardDisks(VirtualMachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:listharddisks")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(DisksManagementDto.BASE_MEDIA_TYPE)
|
@Consumes(DisksManagementDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -622,6 +673,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#detachAllHardDisks(VirtualMachineDto)
|
* @see CloudApi#detachAllHardDisks(VirtualMachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:detachharddisks")
|
||||||
@DELETE
|
@DELETE
|
||||||
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -631,6 +683,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#replaceHardDisks(VirtualMachineDto, DiskManagementDto...)
|
* @see CloudApi#replaceHardDisks(VirtualMachineDto, DiskManagementDto...)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:changeharddisks")
|
||||||
@PUT
|
@PUT
|
||||||
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -643,6 +696,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#deployVirtualMachine(VirtualMachineDto,
|
* @see CloudApi#deployVirtualMachine(VirtualMachineDto,
|
||||||
* VirtualMachineTaskDto)
|
* VirtualMachineTaskDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:deploy")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VirtualMachineTaskDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualMachineTaskDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -655,6 +709,7 @@ public interface CloudAsyncApi {
|
||||||
* @see CloudApi#undeployVirtualMachine(VirtualMachineDto,
|
* @see CloudApi#undeployVirtualMachine(VirtualMachineDto,
|
||||||
* VirtualMachineTaskDto)
|
* VirtualMachineTaskDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("vm:undeploy")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VirtualMachineTaskDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualMachineTaskDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -668,6 +723,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listHardDisks(VirtualDatacenterDto)
|
* @see CloudApi#listHardDisks(VirtualDatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("harddisk:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(DisksManagementDto.BASE_MEDIA_TYPE)
|
@Consumes(DisksManagementDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -677,6 +733,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getHardDisk(VirtualDatacenterDto, Integer)
|
* @see CloudApi#getHardDisk(VirtualDatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("harddisk:get")
|
||||||
@GET
|
@GET
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
@Consumes(DiskManagementDto.BASE_MEDIA_TYPE)
|
@Consumes(DiskManagementDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -688,6 +745,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#createHardDisk(VirtualDatacenterDto, DiskManagementDto)
|
* @see CloudApi#createHardDisk(VirtualDatacenterDto, DiskManagementDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("harddisk:create")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(DiskManagementDto.BASE_MEDIA_TYPE)
|
@Consumes(DiskManagementDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(DiskManagementDto.BASE_MEDIA_TYPE)
|
@Produces(DiskManagementDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -699,6 +757,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#deleteHardDisk(DiskManagementDto)
|
* @see CloudApi#deleteHardDisk(DiskManagementDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("harddisk:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteHardDisk(@EndpointLink("edit") @BinderParam(BindToPath.class) DiskManagementDto hardDisk);
|
ListenableFuture<Void> deleteHardDisk(@EndpointLink("edit") @BinderParam(BindToPath.class) DiskManagementDto hardDisk);
|
||||||
|
|
||||||
|
@ -707,6 +766,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listVolumes(VirtualDatacenterDto)
|
* @see CloudApi#listVolumes(VirtualDatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("volume:list")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VolumesManagementDto.BASE_MEDIA_TYPE)
|
@Consumes(VolumesManagementDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -717,6 +777,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#listVolumes(VirtualDatacenterDto, VolumeOptions)
|
* @see CloudApi#listVolumes(VirtualDatacenterDto, VolumeOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("volume:list")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VolumesManagementDto.BASE_MEDIA_TYPE)
|
@Consumes(VolumesManagementDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -728,6 +789,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#getVolume(VirtualDatacenterDto, Integer)
|
* @see CloudApi#getVolume(VirtualDatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("volume:get")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
|
@ -740,6 +802,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#createVolume(VirtualDatacenterDto, VolumeManagementDto)
|
* @see CloudApi#createVolume(VirtualDatacenterDto, VolumeManagementDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("volume:create")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
@Consumes(VolumeManagementDto.BASE_MEDIA_TYPE)
|
@Consumes(VolumeManagementDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -752,6 +815,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#updateVolume(VolumeManagementDto)
|
* @see CloudApi#updateVolume(VolumeManagementDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("volume:update")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@PUT
|
@PUT
|
||||||
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
||||||
|
@ -763,6 +827,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#updateVolume(VolumeManagementDto)
|
* @see CloudApi#updateVolume(VolumeManagementDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("volume:delete")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteVolume(@EndpointLink("edit") @BinderParam(BindToPath.class) VolumeManagementDto volume);
|
ListenableFuture<Void> deleteVolume(@EndpointLink("edit") @BinderParam(BindToPath.class) VolumeManagementDto volume);
|
||||||
|
@ -770,6 +835,7 @@ public interface CloudAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see CloudApi#moveVolume(VolumeManagementDto, VirtualDatacenterDto)
|
* @see CloudApi#moveVolume(VolumeManagementDto, VirtualDatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("volume:move")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
@Fallback(MovedVolume.class)
|
@Fallback(MovedVolume.class)
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
package org.jclouds.abiquo.features;
|
package org.jclouds.abiquo.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.DELETE;
|
import javax.ws.rs.DELETE;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
|
@ -71,7 +72,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#listLicenses()
|
* @see ConfigApi#listLicenses()
|
||||||
*/
|
*/
|
||||||
|
@Named("license:list")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Path("/licenses")
|
@Path("/licenses")
|
||||||
|
@ -82,6 +83,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#listLicenses(LicenseOptions)
|
* @see ConfigApi#listLicenses(LicenseOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("license:list")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Path("/licenses")
|
@Path("/licenses")
|
||||||
|
@ -92,6 +94,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#addLicense(LicenseDto)
|
* @see ConfigApi#addLicense(LicenseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("license:add")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
@Produces(LicenseDto.BASE_MEDIA_TYPE)
|
@Produces(LicenseDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -103,6 +106,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#removeLicense(LicenseDto)
|
* @see ConfigApi#removeLicense(LicenseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("license:remove")
|
||||||
@DELETE
|
@DELETE
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
ListenableFuture<Void> removeLicense(@EndpointLink("edit") @BinderParam(BindToPath.class) LicenseDto license);
|
ListenableFuture<Void> removeLicense(@EndpointLink("edit") @BinderParam(BindToPath.class) LicenseDto license);
|
||||||
|
@ -112,6 +116,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#listPrivileges()
|
* @see ConfigApi#listPrivileges()
|
||||||
*/
|
*/
|
||||||
|
@Named("privilege:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/privileges")
|
@Path("/privileges")
|
||||||
@Consumes(PrivilegesDto.BASE_MEDIA_TYPE)
|
@Consumes(PrivilegesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -121,6 +126,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#getPrivilege(Integer)
|
* @see ConfigApi#getPrivilege(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("privilege:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/privileges/{privilege}")
|
@Path("/privileges/{privilege}")
|
||||||
@Consumes(PrivilegeDto.BASE_MEDIA_TYPE)
|
@Consumes(PrivilegeDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -133,6 +139,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#listSystemProperties()
|
* @see ConfigApi#listSystemProperties()
|
||||||
*/
|
*/
|
||||||
|
@Named("property:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/properties")
|
@Path("/properties")
|
||||||
@Consumes(SystemPropertiesDto.BASE_MEDIA_TYPE)
|
@Consumes(SystemPropertiesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -142,6 +149,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#listSystemProperties(PropertyOptions)
|
* @see ConfigApi#listSystemProperties(PropertyOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("property:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/properties")
|
@Path("/properties")
|
||||||
@Consumes(SystemPropertiesDto.BASE_MEDIA_TYPE)
|
@Consumes(SystemPropertiesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -151,6 +159,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#updateSystemProperty(VirtualDatacenterDto)
|
* @see ConfigApi#updateSystemProperty(VirtualDatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("property:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(SystemPropertyDto.BASE_MEDIA_TYPE)
|
@Produces(SystemPropertyDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(SystemPropertyDto.BASE_MEDIA_TYPE)
|
@Consumes(SystemPropertyDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -163,6 +172,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#listCategories()
|
* @see ConfigApi#listCategories()
|
||||||
*/
|
*/
|
||||||
|
@Named("category:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/categories")
|
@Path("/categories")
|
||||||
@Consumes(CategoriesDto.BASE_MEDIA_TYPE)
|
@Consumes(CategoriesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -172,6 +182,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#getCategory(Integer)
|
* @see ConfigApi#getCategory(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("category:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/categories/{category}")
|
@Path("/categories/{category}")
|
||||||
@Consumes(CategoryDto.BASE_MEDIA_TYPE)
|
@Consumes(CategoryDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -182,6 +193,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#createCategory(CategoryDto)
|
* @see ConfigApi#createCategory(CategoryDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("category:create")
|
||||||
@POST
|
@POST
|
||||||
@Path("/categories")
|
@Path("/categories")
|
||||||
@Produces(CategoryDto.BASE_MEDIA_TYPE)
|
@Produces(CategoryDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -192,6 +204,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#updateCategory(CategoryDto)
|
* @see ConfigApi#updateCategory(CategoryDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("category:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(CategoryDto.BASE_MEDIA_TYPE)
|
@Produces(CategoryDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(CategoryDto.BASE_MEDIA_TYPE)
|
@Consumes(CategoryDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -202,6 +215,7 @@ public interface ConfigAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#deleteCategory(CategoryDto)
|
* @see ConfigApi#deleteCategory(CategoryDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("category:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteCategory(@EndpointLink("edit") @BinderParam(BindToPath.class) CategoryDto category);
|
ListenableFuture<Void> deleteCategory(@EndpointLink("edit") @BinderParam(BindToPath.class) CategoryDto category);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
package org.jclouds.abiquo.features;
|
package org.jclouds.abiquo.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.DELETE;
|
import javax.ws.rs.DELETE;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
|
@ -83,6 +84,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listEnterprises()
|
* @see EnterpriseApi#listEnterprises()
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/enterprises")
|
@Path("/enterprises")
|
||||||
@Consumes(EnterprisesDto.BASE_MEDIA_TYPE)
|
@Consumes(EnterprisesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -92,6 +94,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listEnterprises(EnterpriseOptions)
|
* @see EnterpriseApi#listEnterprises(EnterpriseOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/enterprises")
|
@Path("/enterprises")
|
||||||
@Consumes(EnterprisesDto.BASE_MEDIA_TYPE)
|
@Consumes(EnterprisesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -101,6 +104,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listEnterprises(DatacenterDto, EnterpriseOptions)
|
* @see EnterpriseApi#listEnterprises(DatacenterDto, EnterpriseOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(EnterprisesDto.BASE_MEDIA_TYPE)
|
@Consumes(EnterprisesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -110,6 +114,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#createEnterprise(EnterpriseDto)
|
* @see EnterpriseApi#createEnterprise(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:create")
|
||||||
@POST
|
@POST
|
||||||
@Path("/enterprises")
|
@Path("/enterprises")
|
||||||
@Produces(EnterpriseDto.BASE_MEDIA_TYPE)
|
@Produces(EnterpriseDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -120,6 +125,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#getEnterprise(Integer)
|
* @see EnterpriseApi#getEnterprise(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/enterprises/{enterprise}")
|
@Path("/enterprises/{enterprise}")
|
||||||
@Consumes(EnterpriseDto.BASE_MEDIA_TYPE)
|
@Consumes(EnterpriseDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -130,6 +136,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#updateEnterprise(EnterpriseDto)
|
* @see EnterpriseApi#updateEnterprise(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(EnterpriseDto.BASE_MEDIA_TYPE)
|
@Produces(EnterpriseDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(EnterpriseDto.BASE_MEDIA_TYPE)
|
@Consumes(EnterpriseDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -140,12 +147,14 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#deleteEnterprise(EnterpriseDto)
|
* @see EnterpriseApi#deleteEnterprise(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteEnterprise(@EndpointLink("edit") @BinderParam(BindToPath.class) EnterpriseDto enterprise);
|
ListenableFuture<Void> deleteEnterprise(@EndpointLink("edit") @BinderParam(BindToPath.class) EnterpriseDto enterprise);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listAllowedDatacenters(Integer)
|
* @see EnterpriseApi#listAllowedDatacenters(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:listalloweddatacenters")
|
||||||
@GET
|
@GET
|
||||||
@Path("/datacenters")
|
@Path("/datacenters")
|
||||||
@Consumes(DatacentersDto.BASE_MEDIA_TYPE)
|
@Consumes(DatacentersDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -155,6 +164,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listVirtualDatacenters(EnterpriseDto)
|
* @see EnterpriseApi#listVirtualDatacenters(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:listvirtualdatacenters")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualDatacentersDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualDatacentersDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -166,6 +176,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#getEnterpriseProperties(EnterpriseDto)
|
* @see EnterpriseApi#getEnterpriseProperties(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:getproperties")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(EnterprisePropertiesDto.BASE_MEDIA_TYPE)
|
@Consumes(EnterprisePropertiesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -176,6 +187,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#updateEnterpriseProperties(EnterprisePropertiesDto)
|
* @see EnterpriseApi#updateEnterpriseProperties(EnterprisePropertiesDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprse:setproperties")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(EnterprisePropertiesDto.BASE_MEDIA_TYPE)
|
@Produces(EnterprisePropertiesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -190,6 +202,7 @@ public interface EnterpriseAsyncApi {
|
||||||
* @see EnterpriseApi#createLimits(EnterpriseDto, DatacenterDto,
|
* @see EnterpriseApi#createLimits(EnterpriseDto, DatacenterDto,
|
||||||
* DatacenterLimitsDto)
|
* DatacenterLimitsDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("limit:create")
|
||||||
@POST
|
@POST
|
||||||
@Produces(DatacenterLimitsDto.BASE_MEDIA_TYPE)
|
@Produces(DatacenterLimitsDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(DatacenterLimitsDto.BASE_MEDIA_TYPE)
|
@Consumes(DatacenterLimitsDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -202,6 +215,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#getLimits(EnterpriseDto, DatacenterDto)
|
* @see EnterpriseApi#getLimits(EnterpriseDto, DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("limit:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(DatacentersLimitsDto.BASE_MEDIA_TYPE)
|
@Consumes(DatacentersLimitsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -213,6 +227,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#updateLimits(DatacenterLimitsDto)
|
* @see EnterpriseApi#updateLimits(DatacenterLimitsDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("limit:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(DatacenterLimitsDto.BASE_MEDIA_TYPE)
|
@Produces(DatacenterLimitsDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(DatacenterLimitsDto.BASE_MEDIA_TYPE)
|
@Consumes(DatacenterLimitsDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -223,12 +238,14 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#deleteLimits(DatacenterLimitsDto)
|
* @see EnterpriseApi#deleteLimits(DatacenterLimitsDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("limit:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteLimits(@EndpointLink("edit") @BinderParam(BindToPath.class) DatacenterLimitsDto limits);
|
ListenableFuture<Void> deleteLimits(@EndpointLink("edit") @BinderParam(BindToPath.class) DatacenterLimitsDto limits);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listLimits(EnterpriseDto)
|
* @see EnterpriseApi#listLimits(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("limit:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(DatacentersLimitsDto.BASE_MEDIA_TYPE)
|
@Consumes(DatacentersLimitsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -240,6 +257,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listUsers(EnterpriseDto)
|
* @see EnterpriseApi#listUsers(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("user:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(UsersDto.BASE_MEDIA_TYPE)
|
@Consumes(UsersDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -248,6 +266,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#getUser(EnterpriseDto, Integer)
|
* @see EnterpriseApi#getUser(EnterpriseDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("user:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(UserDto.BASE_MEDIA_TYPE)
|
@Consumes(UserDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -258,6 +277,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#createUser(EnterpriseDto)
|
* @see EnterpriseApi#createUser(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("user:create")
|
||||||
@POST
|
@POST
|
||||||
@Produces(UserDto.BASE_MEDIA_TYPE)
|
@Produces(UserDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(UserDto.BASE_MEDIA_TYPE)
|
@Consumes(UserDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -268,6 +288,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#updateUser(UserDto)
|
* @see EnterpriseApi#updateUser(UserDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("user:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(UserDto.BASE_MEDIA_TYPE)
|
@Produces(UserDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(UserDto.BASE_MEDIA_TYPE)
|
@Consumes(UserDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -277,12 +298,14 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#deleteUser(UserDto)
|
* @see EnterpriseApi#deleteUser(UserDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("user:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteUser(@EndpointLink("edit") @BinderParam(BindToPath.class) UserDto user);
|
ListenableFuture<Void> deleteUser(@EndpointLink("edit") @BinderParam(BindToPath.class) UserDto user);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listVirtualMachines(UserDto)
|
* @see EnterpriseApi#listVirtualMachines(UserDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("user:listvms")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualMachinesWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachinesWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -294,6 +317,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#getDatacenterRepository(EnterpriseDto, Integer)
|
* @see EnterpriseApi#getDatacenterRepository(EnterpriseDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("repository:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(DatacenterRepositoryDto.BASE_MEDIA_TYPE)
|
@Consumes(DatacenterRepositoryDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -305,6 +329,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#refreshTemplateRepository(Integer, Integer)
|
* @see EnterpriseApi#refreshTemplateRepository(Integer, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("repository:refresh")
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/actions/refresh")
|
@Path("/enterprises/{enterprise}/datacenterrepositories/{datacenterrepository}/actions/refresh")
|
||||||
ListenableFuture<Void> refreshTemplateRepository(@PathParam("enterprise") Integer enterpriseId,
|
ListenableFuture<Void> refreshTemplateRepository(@PathParam("enterprise") Integer enterpriseId,
|
||||||
|
@ -315,6 +340,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listExternalNetworks(EnterpriseDto)
|
* @see EnterpriseApi#listExternalNetworks(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:listexternalnetworks")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VLANNetworksDto.BASE_MEDIA_TYPE)
|
@Consumes(VLANNetworksDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -327,6 +353,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listVirtualAppliances(EnterpriseDto)
|
* @see EnterpriseApi#listVirtualAppliances(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:listvapps")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualAppliancesDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualAppliancesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -336,6 +363,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listVirtualMachines(EnterpriseDto)
|
* @see EnterpriseApi#listVirtualMachines(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:listvms")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualMachinesWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachinesWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -347,6 +375,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listVirtualMachines(EnterpriseDto)
|
* @see EnterpriseApi#listVirtualMachines(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("enterprise:listreservedmachines")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachinesDto.BASE_MEDIA_TYPE)
|
@Consumes(MachinesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -358,6 +387,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#listTemplateDefinitionLists(EnterpriseDto)
|
* @see EnterpriseApi#listTemplateDefinitionLists(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("templatedefinitionlist:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(TemplateDefinitionListsDto.BASE_MEDIA_TYPE)
|
@Consumes(TemplateDefinitionListsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -368,6 +398,7 @@ public interface EnterpriseAsyncApi {
|
||||||
* @see EnterpriseApi#createTemplateDefinitionList(EnterpriseDto,
|
* @see EnterpriseApi#createTemplateDefinitionList(EnterpriseDto,
|
||||||
* TemplateDefinitionListDto)
|
* TemplateDefinitionListDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("templatedefinitionlist:create")
|
||||||
@POST
|
@POST
|
||||||
@Produces(TemplateDefinitionListDto.BASE_MEDIA_TYPE)
|
@Produces(TemplateDefinitionListDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(TemplateDefinitionListDto.BASE_MEDIA_TYPE)
|
@Consumes(TemplateDefinitionListDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -379,6 +410,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#updateTemplateDefinitionList(TemplateDefinitionListDto)
|
* @see EnterpriseApi#updateTemplateDefinitionList(TemplateDefinitionListDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("templatedefinitionlist:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(TemplateDefinitionListDto.BASE_MEDIA_TYPE)
|
@Produces(TemplateDefinitionListDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(TemplateDefinitionListDto.BASE_MEDIA_TYPE)
|
@Consumes(TemplateDefinitionListDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -389,6 +421,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#deleteTemplateDefinitionList(EnterpriseDto)
|
* @see EnterpriseApi#deleteTemplateDefinitionList(EnterpriseDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("templatedefinitionlist:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteTemplateDefinitionList(
|
ListenableFuture<Void> deleteTemplateDefinitionList(
|
||||||
@EndpointLink("edit") @BinderParam(BindToPath.class) TemplateDefinitionListDto templateList);
|
@EndpointLink("edit") @BinderParam(BindToPath.class) TemplateDefinitionListDto templateList);
|
||||||
|
@ -396,6 +429,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#getTemplateDefinitionList(EnterpriseDto, Integer)
|
* @see EnterpriseApi#getTemplateDefinitionList(EnterpriseDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("templatedefinitionlist:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(TemplateDefinitionListDto.BASE_MEDIA_TYPE)
|
@Consumes(TemplateDefinitionListDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -407,6 +441,7 @@ public interface EnterpriseAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EnterpriseApi#getTemplateDefinitionList(EnterpriseDto, Integer)
|
* @see EnterpriseApi#getTemplateDefinitionList(EnterpriseDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("templatedefinitionlist:status")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(TemplatesStateDto.BASE_MEDIA_TYPE)
|
@Consumes(TemplatesStateDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
package org.jclouds.abiquo.features;
|
package org.jclouds.abiquo.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.Path;
|
import javax.ws.rs.Path;
|
||||||
|
@ -46,6 +47,7 @@ public interface EventAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EventApi#listEvents()
|
* @see EventApi#listEvents()
|
||||||
*/
|
*/
|
||||||
|
@Named("event:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/events")
|
@Path("/events")
|
||||||
@Consumes(EventsDto.BASE_MEDIA_TYPE)
|
@Consumes(EventsDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -55,6 +57,7 @@ public interface EventAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see EventApi#listEvents()
|
* @see EventApi#listEvents()
|
||||||
*/
|
*/
|
||||||
|
@Named("event:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/events")
|
@Path("/events")
|
||||||
@Consumes(EventsDto.BASE_MEDIA_TYPE)
|
@Consumes(EventsDto.BASE_MEDIA_TYPE)
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
package org.jclouds.abiquo.features;
|
package org.jclouds.abiquo.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.DELETE;
|
import javax.ws.rs.DELETE;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
|
@ -124,6 +125,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listDatacenters()
|
* @see InfrastructureApi#listDatacenters()
|
||||||
*/
|
*/
|
||||||
|
@Named("datacenter:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/datacenters")
|
@Path("/datacenters")
|
||||||
@Consumes(DatacentersDto.BASE_MEDIA_TYPE)
|
@Consumes(DatacentersDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -133,6 +135,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#createDatacenter(DatacenterDto)
|
* @see InfrastructureApi#createDatacenter(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("datacenter:create")
|
||||||
@POST
|
@POST
|
||||||
@Path("/datacenters")
|
@Path("/datacenters")
|
||||||
@Produces(DatacenterDto.BASE_MEDIA_TYPE)
|
@Produces(DatacenterDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -143,6 +146,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getDatacenter(Integer)
|
* @see InfrastructureApi#getDatacenter(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("datacenter:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/datacenters/{datacenter}")
|
@Path("/datacenters/{datacenter}")
|
||||||
@Consumes(DatacenterDto.BASE_MEDIA_TYPE)
|
@Consumes(DatacenterDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -153,6 +157,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#updateDatacenter(DatacenterDto)
|
* @see InfrastructureApi#updateDatacenter(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("datacenter:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(DatacenterDto.BASE_MEDIA_TYPE)
|
@Produces(DatacenterDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(DatacenterDto.BASE_MEDIA_TYPE)
|
@Consumes(DatacenterDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -163,6 +168,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#deleteDatacenter(DatacenterDto)
|
* @see InfrastructureApi#deleteDatacenter(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("datacenter:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteDatacenter(@EndpointLink("edit") @BinderParam(BindToPath.class) DatacenterDto datacenter);
|
ListenableFuture<Void> deleteDatacenter(@EndpointLink("edit") @BinderParam(BindToPath.class) DatacenterDto datacenter);
|
||||||
|
|
||||||
|
@ -170,6 +176,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#discoverSingleMachine(DatacenterDto, String,
|
* @see InfrastructureApi#discoverSingleMachine(DatacenterDto, String,
|
||||||
* HypervisorType, String, String)
|
* HypervisorType, String, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:discover")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -183,6 +190,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#discoverSingleMachine(DatacenterDto, String,
|
* @see InfrastructureApi#discoverSingleMachine(DatacenterDto, String,
|
||||||
* HypervisorType, String, String, MachineOptions)
|
* HypervisorType, String, String, MachineOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:discover")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -196,6 +204,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#discoverMultipleMachines(DatacenterDto, String,
|
* @see InfrastructureApi#discoverMultipleMachines(DatacenterDto, String,
|
||||||
* String, HypervisorType, String, String)
|
* String, HypervisorType, String, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:discover")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachinesDto.BASE_MEDIA_TYPE)
|
@Consumes(MachinesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -210,6 +219,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#discoverMultipleMachines(DatacenterDto, String,
|
* @see InfrastructureApi#discoverMultipleMachines(DatacenterDto, String,
|
||||||
* String, HypervisorType, String, String, MachineOptions)
|
* String, HypervisorType, String, String, MachineOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:discover")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachinesDto.BASE_MEDIA_TYPE)
|
@Consumes(MachinesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -223,6 +233,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listLimits(DatacenterDto)
|
* @see InfrastructureApi#listLimits(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("limit:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(DatacentersLimitsDto.BASE_MEDIA_TYPE)
|
@Consumes(DatacentersLimitsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -233,6 +244,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#checkMachineState(DatacenterDto, String, String,
|
* @see InfrastructureApi#checkMachineState(DatacenterDto, String, String,
|
||||||
* HypervisorType, String, String)
|
* HypervisorType, String, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:checkstate")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachineStateDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineStateDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -246,6 +258,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#checkMachineState(DatacenterDto, String, String,
|
* @see InfrastructureApi#checkMachineState(DatacenterDto, String, String,
|
||||||
* HypervisorType, String, String, MachineOptions)
|
* HypervisorType, String, String, MachineOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:checkstate")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachineStateDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineStateDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -259,6 +272,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#checkMachineIpmiState(DatacenterDto, String,
|
* @see InfrastructureApi#checkMachineIpmiState(DatacenterDto, String,
|
||||||
* String, String)
|
* String, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:checkipmi")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachineIpmiStateDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineIpmiStateDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -271,6 +285,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#checkMachineIpmiState(DatacenterDto, String,
|
* @see InfrastructureApi#checkMachineIpmiState(DatacenterDto, String,
|
||||||
* String, String, IpmiOptions)
|
* String, String, IpmiOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:checkipmi")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachineIpmiStateDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineIpmiStateDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -285,6 +300,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#getHypervisorTypeFromMachine(DatacenterDto,
|
* @see InfrastructureApi#getHypervisorTypeFromMachine(DatacenterDto,
|
||||||
* DatacenterOptions)
|
* DatacenterOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("hypervisortype:getfrommachine")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MediaType.TEXT_PLAIN)
|
@Consumes(MediaType.TEXT_PLAIN)
|
||||||
@ResponseParser(ReturnStringIf2xx.class)
|
@ResponseParser(ReturnStringIf2xx.class)
|
||||||
|
@ -294,6 +310,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getHypervisorTypes(DatacenterDto)
|
* @see InfrastructureApi#getHypervisorTypes(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("hypervisortype:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(HypervisorTypesDto.BASE_MEDIA_TYPE)
|
@Consumes(HypervisorTypesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -305,6 +322,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listRacks(DatacenterDto)
|
* @see InfrastructureApi#listRacks(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("rack:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(RacksDto.BASE_MEDIA_TYPE)
|
@Consumes(RacksDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -313,6 +331,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#createRack(DatacenterDto, RackDto)
|
* @see InfrastructureApi#createRack(DatacenterDto, RackDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("rack:create")
|
||||||
@POST
|
@POST
|
||||||
@Produces(RackDto.BASE_MEDIA_TYPE)
|
@Produces(RackDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(RackDto.BASE_MEDIA_TYPE)
|
@Consumes(RackDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -323,6 +342,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getRack(DatacenterDto, Integer)
|
* @see InfrastructureApi#getRack(DatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("rack:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(RackDto.BASE_MEDIA_TYPE)
|
@Consumes(RackDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -333,6 +353,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#updateRack(RackDto)
|
* @see InfrastructureApi#updateRack(RackDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("rack:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes(RackDto.BASE_MEDIA_TYPE)
|
@Consumes(RackDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(RackDto.BASE_MEDIA_TYPE)
|
@Produces(RackDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -342,6 +363,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#deleteRack(RackDto)
|
* @see InfrastructureApi#deleteRack(RackDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("rack:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteRack(@EndpointLink("edit") @BinderParam(BindToPath.class) RackDto rack);
|
ListenableFuture<Void> deleteRack(@EndpointLink("edit") @BinderParam(BindToPath.class) RackDto rack);
|
||||||
|
|
||||||
|
@ -350,6 +372,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listManagedRacks(DatacenterDto)
|
* @see InfrastructureApi#listManagedRacks(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:listracks")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(UcsRacksDto.BASE_MEDIA_TYPE)
|
@Consumes(UcsRacksDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -360,6 +383,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#createManagedRack(DatacenterDto, UcsRackDto)
|
* @see InfrastructureApi#createManagedRack(DatacenterDto, UcsRackDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:createrack")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
@Produces(UcsRackDto.BASE_MEDIA_TYPE)
|
@Produces(UcsRackDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -372,6 +396,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getManagedRack(DatacenterDto, Integer)
|
* @see InfrastructureApi#getManagedRack(DatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:getrack")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(UcsRackDto.BASE_MEDIA_TYPE)
|
@Consumes(UcsRackDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -384,6 +409,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#updateManagedRack(UcsRackDto)
|
* @see InfrastructureApi#updateManagedRack(UcsRackDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:updaterack")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes(UcsRackDto.BASE_MEDIA_TYPE)
|
@Consumes(UcsRackDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -395,6 +421,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listServiceProfiles(UcsRackDto)
|
* @see InfrastructureApi#listServiceProfiles(UcsRackDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:listserviceprofiles")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(LogicServersDto.BASE_MEDIA_TYPE)
|
@Consumes(LogicServersDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -405,6 +432,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listServiceProfiles(UcsRackDto, QueryOptions)
|
* @see InfrastructureApi#listServiceProfiles(UcsRackDto, QueryOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:listserviceprofiles")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(LogicServersDto.BASE_MEDIA_TYPE)
|
@Consumes(LogicServersDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -415,6 +443,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listServiceProfileTemplates(UcsRackDto)
|
* @see InfrastructureApi#listServiceProfileTemplates(UcsRackDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:listserviceprofiletemplates")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(LogicServersDto.BASE_MEDIA_TYPE)
|
@Consumes(LogicServersDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -426,6 +455,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#listServiceProfileTemplates(UcsRackDto,
|
* @see InfrastructureApi#listServiceProfileTemplates(UcsRackDto,
|
||||||
* LogicServerOptions)
|
* LogicServerOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:listserviceproviletemplates")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(LogicServersDto.BASE_MEDIA_TYPE)
|
@Consumes(LogicServersDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -436,6 +466,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listOrganizations(UcsRackDto)
|
* @see InfrastructureApi#listOrganizations(UcsRackDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:listorganizations")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(OrganizationsDto.BASE_MEDIA_TYPE)
|
@Consumes(OrganizationsDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -446,6 +477,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listOrganizations(UcsRackDto, OrganizationOptions)
|
* @see InfrastructureApi#listOrganizations(UcsRackDto, OrganizationOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:listorganizations")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(OrganizationsDto.BASE_MEDIA_TYPE)
|
@Consumes(OrganizationsDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -457,6 +489,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#cloneLogicServer(UcsRackDto, LogicServerDto,
|
* @see InfrastructureApi#cloneLogicServer(UcsRackDto, LogicServerDto,
|
||||||
* OrganizationDto, String)
|
* OrganizationDto, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:clonelogicserver")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
ListenableFuture<Void> cloneLogicServer(@EndpointLink("ls-clone") @BinderParam(BindToPath.class) UcsRackDto rack,
|
ListenableFuture<Void> cloneLogicServer(@EndpointLink("ls-clone") @BinderParam(BindToPath.class) UcsRackDto rack,
|
||||||
|
@ -468,6 +501,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#associateLogicServer(UcsRackDto, LogicServerDto,
|
* @see InfrastructureApi#associateLogicServer(UcsRackDto, LogicServerDto,
|
||||||
* OrganizationDto, String)
|
* OrganizationDto, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:associatelogicserver")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
ListenableFuture<Void> associateLogicServer(
|
ListenableFuture<Void> associateLogicServer(
|
||||||
|
@ -480,6 +514,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#associateTemplate(UcsRackDto, LogicServerDto,
|
* @see InfrastructureApi#associateTemplate(UcsRackDto, LogicServerDto,
|
||||||
* OrganizationDto, String, String)
|
* OrganizationDto, String, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:associatetemplate")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
ListenableFuture<Void> associateTemplate(
|
ListenableFuture<Void> associateTemplate(
|
||||||
|
@ -492,6 +527,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#cloneAndAssociateLogicServer(UcsRackDto,
|
* @see InfrastructureApi#cloneAndAssociateLogicServer(UcsRackDto,
|
||||||
* LogicServerDto, OrganizationDto, String, String)
|
* LogicServerDto, OrganizationDto, String, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:cloneandassociatelogicserver")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
ListenableFuture<Void> cloneAndAssociateLogicServer(
|
ListenableFuture<Void> cloneAndAssociateLogicServer(
|
||||||
|
@ -503,6 +539,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#dissociateLogicServer(UcsRackDto, LogicServerDto)
|
* @see InfrastructureApi#dissociateLogicServer(UcsRackDto, LogicServerDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:dissociatelogicserver")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
ListenableFuture<Void> dissociateLogicServer(
|
ListenableFuture<Void> dissociateLogicServer(
|
||||||
|
@ -512,6 +549,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#deleteLogicServer(UcsRackDto, LogicServerDto)
|
* @see InfrastructureApi#deleteLogicServer(UcsRackDto, LogicServerDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:deletelogicserver")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
ListenableFuture<Void> deleteLogicServer(@EndpointLink("ls-delete") @BinderParam(BindToPath.class) UcsRackDto rack,
|
ListenableFuture<Void> deleteLogicServer(@EndpointLink("ls-delete") @BinderParam(BindToPath.class) UcsRackDto rack,
|
||||||
|
@ -520,6 +558,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listFsms(UcsRackDto, String)
|
* @see InfrastructureApi#listFsms(UcsRackDto, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("ucs:listfsms")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(FsmsDto.BASE_MEDIA_TYPE)
|
@Consumes(FsmsDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -532,6 +571,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listRemoteServices(DatacenterDto)
|
* @see InfrastructureApi#listRemoteServices(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("rs:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(RemoteServicesDto.BASE_MEDIA_TYPE)
|
@Consumes(RemoteServicesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -542,6 +582,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#createRemoteService(DatacenterDto,
|
* @see InfrastructureApi#createRemoteService(DatacenterDto,
|
||||||
* RemoteServiceDto)
|
* RemoteServiceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("rs:create")
|
||||||
@POST
|
@POST
|
||||||
@Produces(RemoteServiceDto.BASE_MEDIA_TYPE)
|
@Produces(RemoteServiceDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(RemoteServiceDto.BASE_MEDIA_TYPE)
|
@Consumes(RemoteServiceDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -553,6 +594,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getRemoteService(DatacenterDto, RemoteServiceType)
|
* @see InfrastructureApi#getRemoteService(DatacenterDto, RemoteServiceType)
|
||||||
*/
|
*/
|
||||||
|
@Named("rs:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(RemoteServiceDto.BASE_MEDIA_TYPE)
|
@Consumes(RemoteServiceDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -564,6 +606,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#updateRemoteService(RemoteServiceDto)
|
* @see InfrastructureApi#updateRemoteService(RemoteServiceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("rs:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes(RemoteServiceDto.BASE_MEDIA_TYPE)
|
@Consumes(RemoteServiceDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(RemoteServiceDto.BASE_MEDIA_TYPE)
|
@Produces(RemoteServiceDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -574,6 +617,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#deleteRemoteService(RemoteServiceDto)
|
* @see InfrastructureApi#deleteRemoteService(RemoteServiceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("rs:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteRemoteService(
|
ListenableFuture<Void> deleteRemoteService(
|
||||||
@EndpointLink("edit") @BinderParam(BindToPath.class) RemoteServiceDto remoteService);
|
@EndpointLink("edit") @BinderParam(BindToPath.class) RemoteServiceDto remoteService);
|
||||||
|
@ -581,6 +625,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#isAvailable(RemoteServiceDto)
|
* @see InfrastructureApi#isAvailable(RemoteServiceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("rs:available")
|
||||||
@GET
|
@GET
|
||||||
@Fallback(FalseIfNotAvailable.class)
|
@Fallback(FalseIfNotAvailable.class)
|
||||||
ListenableFuture<Boolean> isAvailable(
|
ListenableFuture<Boolean> isAvailable(
|
||||||
|
@ -591,6 +636,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listMachines(RackDto)
|
* @see InfrastructureApi#listMachines(RackDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachinesDto.BASE_MEDIA_TYPE)
|
@Consumes(MachinesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -599,6 +645,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#createMachine(RackDto, MachineDto)
|
* @see InfrastructureApi#createMachine(RackDto, MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:create")
|
||||||
@POST
|
@POST
|
||||||
@Produces(MachineDto.BASE_MEDIA_TYPE)
|
@Produces(MachineDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -609,6 +656,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getMachine(RackDto, Integer)
|
* @see InfrastructureApi#getMachine(RackDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -619,6 +667,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#checkMachineState(MachineDto)
|
* @see InfrastructureApi#checkMachineState(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:checkstate")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachineStateDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineStateDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -629,6 +678,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#checkMachineIpmiState(MachineDto)
|
* @see InfrastructureApi#checkMachineIpmiState(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:checkipmi")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(MachineIpmiStateDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineIpmiStateDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -638,6 +688,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#updateMachine(MachineDto)
|
* @see InfrastructureApi#updateMachine(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(MachineDto.BASE_MEDIA_TYPE)
|
@Produces(MachineDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -648,12 +699,14 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#deleteMachine(MachineDto)
|
* @see InfrastructureApi#deleteMachine(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteMachine(@EndpointLink("edit") @BinderParam(BindToPath.class) MachineDto machine);
|
ListenableFuture<Void> deleteMachine(@EndpointLink("edit") @BinderParam(BindToPath.class) MachineDto machine);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#reserveMachine(EnterpriseDto, MachineDto)
|
* @see InfrastructureApi#reserveMachine(EnterpriseDto, MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:reserve")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
@Consumes(MachineDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(MachineDto.BASE_MEDIA_TYPE)
|
@Produces(MachineDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -665,6 +718,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#cancelReservation(EnterpriseDto, MachineDto)
|
* @see InfrastructureApi#cancelReservation(EnterpriseDto, MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:cancelreservation")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> cancelReservation(
|
ListenableFuture<Void> cancelReservation(
|
||||||
@EndpointLink("reservedmachines") @BinderParam(BindToPath.class) EnterpriseDto enterprise,
|
@EndpointLink("reservedmachines") @BinderParam(BindToPath.class) EnterpriseDto enterprise,
|
||||||
|
@ -675,6 +729,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#powerOff(MachineDto)
|
* @see InfrastructureApi#powerOff(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:poweroff")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@PUT
|
@PUT
|
||||||
ListenableFuture<Void> powerOff(@EndpointLink("poweroff") @BinderParam(BindToPath.class) MachineDto machine);
|
ListenableFuture<Void> powerOff(@EndpointLink("poweroff") @BinderParam(BindToPath.class) MachineDto machine);
|
||||||
|
@ -682,6 +737,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#powerOn(MachineDto)
|
* @see InfrastructureApi#powerOn(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:poweron")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@PUT
|
@PUT
|
||||||
ListenableFuture<Void> powerOn(@EndpointLink("poweron") @BinderParam(BindToPath.class) MachineDto machine);
|
ListenableFuture<Void> powerOn(@EndpointLink("poweron") @BinderParam(BindToPath.class) MachineDto machine);
|
||||||
|
@ -689,6 +745,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getLogicServer(MachineDto)
|
* @see InfrastructureApi#getLogicServer(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:getlogicserver")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(LogicServerDto.BASE_MEDIA_TYPE)
|
@Consumes(LogicServerDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -699,6 +756,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#ledOn(MachineDto)
|
* @see InfrastructureApi#ledOn(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:ledon")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
ListenableFuture<Void> ledOn(@EndpointLink("ledon") @BinderParam(BindToPath.class) MachineDto machine);
|
ListenableFuture<Void> ledOn(@EndpointLink("ledon") @BinderParam(BindToPath.class) MachineDto machine);
|
||||||
|
@ -706,6 +764,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#ledOff(MachineDto)
|
* @see InfrastructureApi#ledOff(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:ledoff")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
ListenableFuture<Void> ledOff(@EndpointLink("ledoff") @BinderParam(BindToPath.class) MachineDto machine);
|
ListenableFuture<Void> ledOff(@EndpointLink("ledoff") @BinderParam(BindToPath.class) MachineDto machine);
|
||||||
|
@ -713,6 +772,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getLedLocator(MachineDto)
|
* @see InfrastructureApi#getLedLocator(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:getlocatorled")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(BladeLocatorLedDto.BASE_MEDIA_TYPE)
|
@Consumes(BladeLocatorLedDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -720,11 +780,10 @@ public interface InfrastructureAsyncApi {
|
||||||
ListenableFuture<BladeLocatorLedDto> getLocatorLed(
|
ListenableFuture<BladeLocatorLedDto> getLocatorLed(
|
||||||
@EndpointLink("led") @BinderParam(BindToPath.class) MachineDto machine);
|
@EndpointLink("led") @BinderParam(BindToPath.class) MachineDto machine);
|
||||||
|
|
||||||
/*********************** Storage Device ***********************/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listVirtualMachinesByMachine(MachineDto)
|
* @see InfrastructureApi#listVirtualMachinesByMachine(MachineDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:listvms")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VirtualMachinesWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachinesWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -734,6 +793,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getVirtualMachine(MachineDto, Integer)
|
* @see InfrastructureApi#getVirtualMachine(MachineDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("machine:getvm")
|
||||||
@GET
|
@GET
|
||||||
@Fallback(NullOnNotFoundOr404.class)
|
@Fallback(NullOnNotFoundOr404.class)
|
||||||
@Consumes(VirtualMachineWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineWithNodeExtendedDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -747,6 +807,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listStorageDevices(DatacenterDto)
|
* @see InfrastructureApi#listStorageDevices(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagedevice:list")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(StorageDevicesDto.BASE_MEDIA_TYPE)
|
@Consumes(StorageDevicesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -757,6 +818,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listSupportedStorageDevices(DatacenterDto)
|
* @see InfrastructureApi#listSupportedStorageDevices(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagedevice:listsupported")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(StorageDevicesMetadataDto.BASE_MEDIA_TYPE)
|
@Consumes(StorageDevicesMetadataDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -767,6 +829,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getStorageDevice(DatacenterDto, Integer)
|
* @see InfrastructureApi#getStorageDevice(DatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagedevice:get")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(StorageDeviceDto.BASE_MEDIA_TYPE)
|
@Consumes(StorageDeviceDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -780,6 +843,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#createStorageDevice(DatacenterDto,
|
* @see InfrastructureApi#createStorageDevice(DatacenterDto,
|
||||||
* StorageDeviceDto)
|
* StorageDeviceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagedevice:create")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
@Produces(StorageDeviceDto.BASE_MEDIA_TYPE)
|
@Produces(StorageDeviceDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -792,6 +856,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#deleteStorageDevice(StorageDeviceDto)
|
* @see InfrastructureApi#deleteStorageDevice(StorageDeviceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagedevice:delete")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteStorageDevice(
|
ListenableFuture<Void> deleteStorageDevice(
|
||||||
|
@ -800,6 +865,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#updateStorageDevice(StorageDeviceDto)
|
* @see InfrastructureApi#updateStorageDevice(StorageDeviceDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagedevice:update")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(StorageDeviceDto.BASE_MEDIA_TYPE)
|
@Produces(StorageDeviceDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -813,6 +879,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listTiers(DatacenterDto)
|
* @see InfrastructureApi#listTiers(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("tier:list")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(TiersDto.BASE_MEDIA_TYPE)
|
@Consumes(TiersDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -822,6 +889,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#updateTier(TierDto)
|
* @see InfrastructureApi#updateTier(TierDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("tier:update")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(TierDto.BASE_MEDIA_TYPE)
|
@Produces(TierDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -832,6 +900,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getTier(DatacenterDto, Integer)
|
* @see InfrastructureApi#getTier(DatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("tier:get")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(TierDto.BASE_MEDIA_TYPE)
|
@Consumes(TierDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -846,6 +915,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#listStoragePools(StorageDeviceDto,
|
* @see InfrastructureApi#listStoragePools(StorageDeviceDto,
|
||||||
* StoragePoolOptions)
|
* StoragePoolOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagepool:list")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(StoragePoolsDto.BASE_MEDIA_TYPE)
|
@Consumes(StoragePoolsDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -857,6 +927,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listStoragePools(TierDto)
|
* @see InfrastructureApi#listStoragePools(TierDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagepool:list")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(StoragePoolsDto.BASE_MEDIA_TYPE)
|
@Consumes(StoragePoolsDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -866,6 +937,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#createStoragePool(StorageDeviceDto, StoragePoolDto)
|
* @see InfrastructureApi#createStoragePool(StorageDeviceDto, StoragePoolDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagepool:create")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
@Consumes(StoragePoolDto.BASE_MEDIA_TYPE)
|
@Consumes(StoragePoolDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -878,6 +950,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#updateStoragePool(StoragePoolDto)
|
* @see InfrastructureApi#updateStoragePool(StoragePoolDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagepool:update")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@PUT
|
@PUT
|
||||||
// For the most strangest reason in world, compiler does not accept
|
// For the most strangest reason in world, compiler does not accept
|
||||||
|
@ -891,6 +964,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#deleteStoragePool(StoragePoolDto)
|
* @see InfrastructureApi#deleteStoragePool(StoragePoolDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagepool:delete")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteStoragePool(
|
ListenableFuture<Void> deleteStoragePool(
|
||||||
|
@ -899,6 +973,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getStoragePool(StorageDeviceDto, String)
|
* @see InfrastructureApi#getStoragePool(StorageDeviceDto, String)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagepool:get")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(StoragePoolDto.BASE_MEDIA_TYPE)
|
@Consumes(StoragePoolDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -912,6 +987,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#refreshStoragePool(StoragePoolDto,
|
* @see InfrastructureApi#refreshStoragePool(StoragePoolDto,
|
||||||
* StoragePoolOptions)
|
* StoragePoolOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("storagepool:refresh")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(StoragePoolDto.BASE_MEDIA_TYPE)
|
@Consumes(StoragePoolDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -924,6 +1000,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listNetworks(DatacenterDto)
|
* @see InfrastructureApi#listNetworks(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("network:list")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VLANNetworksDto.BASE_MEDIA_TYPE)
|
@Consumes(VLANNetworksDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -934,6 +1011,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listNetwork(DatacenterDto, NetworkOptions)
|
* @see InfrastructureApi#listNetwork(DatacenterDto, NetworkOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("network:list")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VLANNetworksDto.BASE_MEDIA_TYPE)
|
@Consumes(VLANNetworksDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -944,6 +1022,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getNetwork(DatacenterDto, Integer)
|
* @see InfrastructureApi#getNetwork(DatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("network:get")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Consumes(VLANNetworkDto.BASE_MEDIA_TYPE)
|
@Consumes(VLANNetworkDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -956,6 +1035,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#createNetwork(DatacenterDto, VLANNetworkDto)
|
* @see InfrastructureApi#createNetwork(DatacenterDto, VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("network:create")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@POST
|
@POST
|
||||||
@Produces(VLANNetworkDto.BASE_MEDIA_TYPE)
|
@Produces(VLANNetworkDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -968,6 +1048,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#updateNetwork(VLANNetworkDto)
|
* @see InfrastructureApi#updateNetwork(VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("network:update")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(VLANNetworkDto.BASE_MEDIA_TYPE)
|
@Produces(VLANNetworkDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -979,6 +1060,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#deleteNetwork(VLANNetworkDto)
|
* @see InfrastructureApi#deleteNetwork(VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("network:delete")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteNetwork(@EndpointLink("edit") @BinderParam(BindToPath.class) VLANNetworkDto network);
|
ListenableFuture<Void> deleteNetwork(@EndpointLink("edit") @BinderParam(BindToPath.class) VLANNetworkDto network);
|
||||||
|
@ -986,6 +1068,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#checkTagAvailability(DatacenterDto, Integer)
|
* @see InfrastructureApi#checkTagAvailability(DatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("network:checktag")
|
||||||
@EnterpriseEdition
|
@EnterpriseEdition
|
||||||
@GET
|
@GET
|
||||||
@Path("/datacenters/{datacenter}/network/action/checkavailability")
|
@Path("/datacenters/{datacenter}/network/action/checkavailability")
|
||||||
|
@ -1000,6 +1083,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listPublicIps(VLANNetworkDto)
|
* @see InfrastructureApi#listPublicIps(VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("publicnetwork:listips")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(PublicIpsDto.BASE_MEDIA_TYPE)
|
@Consumes(PublicIpsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1009,6 +1093,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listPublicIps(VLANNetworkDto, IpOptions)
|
* @see InfrastructureApi#listPublicIps(VLANNetworkDto, IpOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("publicnetwork:listips")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(PublicIpsDto.BASE_MEDIA_TYPE)
|
@Consumes(PublicIpsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1018,6 +1103,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getPublicIp(VLANNetworkDto, Integer)
|
* @see InfrastructureApi#getPublicIp(VLANNetworkDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("publicnetwork:getip")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(PublicIpDto.BASE_MEDIA_TYPE)
|
@Consumes(PublicIpDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1028,6 +1114,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listExternalIps(VLANNetworkDto)
|
* @see InfrastructureApi#listExternalIps(VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("externalnetwork:listips")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(ExternalIpsDto.BASE_MEDIA_TYPE)
|
@Consumes(ExternalIpsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1037,6 +1124,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listExternalIps(VLANNetworkDto, IpOptions)
|
* @see InfrastructureApi#listExternalIps(VLANNetworkDto, IpOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("externalnetwork:listips")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(ExternalIpsDto.BASE_MEDIA_TYPE)
|
@Consumes(ExternalIpsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1046,6 +1134,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getExternalIp(VLANNetworkDto, Integer)
|
* @see InfrastructureApi#getExternalIp(VLANNetworkDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("externalnetwork:getip")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(ExternalIpDto.BASE_MEDIA_TYPE)
|
@Consumes(ExternalIpDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1056,6 +1145,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listUnmanagedIps(VLANNetworkDto)
|
* @see InfrastructureApi#listUnmanagedIps(VLANNetworkDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("unmanagednetwork:listips")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(UnmanagedIpsDto.BASE_MEDIA_TYPE)
|
@Consumes(UnmanagedIpsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1065,6 +1155,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listUnmanagedIps(VLANNetworkDto, IpOptions)
|
* @see InfrastructureApi#listUnmanagedIps(VLANNetworkDto, IpOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("unmanagednetwork:listips")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(UnmanagedIpsDto.BASE_MEDIA_TYPE)
|
@Consumes(UnmanagedIpsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1074,6 +1165,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getUnmanagedIp(VLANNetworkDto, Integer)
|
* @see InfrastructureApi#getUnmanagedIp(VLANNetworkDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("unmanagednetwork:getip")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(UnmanagedIpDto.BASE_MEDIA_TYPE)
|
@Consumes(UnmanagedIpDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1086,6 +1178,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#listNetworkServiceTypes(DatacenterDto)
|
* @see InfrastructureApi#listNetworkServiceTypes(DatacenterDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("networkservicetype:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(NetworkServiceTypesDto.BASE_MEDIA_TYPE)
|
@Consumes(NetworkServiceTypesDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1096,6 +1189,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @see InfrastructureApi#createNetworkServiceType(DatacenterDto,
|
* @see InfrastructureApi#createNetworkServiceType(DatacenterDto,
|
||||||
* NetworkServiceTypeDto)
|
* NetworkServiceTypeDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("networkservicetype:create")
|
||||||
@POST
|
@POST
|
||||||
@Produces(NetworkServiceTypeDto.BASE_MEDIA_TYPE)
|
@Produces(NetworkServiceTypeDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(NetworkServiceTypeDto.BASE_MEDIA_TYPE)
|
@Consumes(NetworkServiceTypeDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -1107,6 +1201,7 @@ public interface InfrastructureAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see InfrastructureApi#getNetworkServiceType(DatacenterDto, Integer)
|
* @see InfrastructureApi#getNetworkServiceType(DatacenterDto, Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("networkservicetype:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(NetworkServiceTypeDto.BASE_MEDIA_TYPE)
|
@Consumes(NetworkServiceTypeDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -1122,6 +1217,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* the instance to update with the new values.
|
* the instance to update with the new values.
|
||||||
* @return the updated entity.
|
* @return the updated entity.
|
||||||
*/
|
*/
|
||||||
|
@Named("networkservicetype:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(NetworkServiceTypeDto.BASE_MEDIA_TYPE)
|
@Produces(NetworkServiceTypeDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(NetworkServiceTypeDto.BASE_MEDIA_TYPE)
|
@Consumes(NetworkServiceTypeDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -1135,6 +1231,7 @@ public interface InfrastructureAsyncApi {
|
||||||
* @param nstDto
|
* @param nstDto
|
||||||
* the entity to delete
|
* the entity to delete
|
||||||
*/
|
*/
|
||||||
|
@Named("networkservicetype:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteNetworkServiceType(
|
ListenableFuture<Void> deleteNetworkServiceType(
|
||||||
@EndpointLink("edit") @BinderParam(BindToPath.class) NetworkServiceTypeDto nstDto);
|
@EndpointLink("edit") @BinderParam(BindToPath.class) NetworkServiceTypeDto nstDto);
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.abiquo.features;
|
package org.jclouds.abiquo.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.DELETE;
|
import javax.ws.rs.DELETE;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
|
@ -70,6 +71,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#listCurrencies()
|
* @see ConfigApi#listCurrencies()
|
||||||
*/
|
*/
|
||||||
|
@Named("currency:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/currencies")
|
@Path("/currencies")
|
||||||
@Consumes(CurrenciesDto.BASE_MEDIA_TYPE)
|
@Consumes(CurrenciesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -79,6 +81,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#getCurrency(Integer)
|
* @see ConfigApi#getCurrency(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("currency:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/currencies/{currency}")
|
@Path("/currencies/{currency}")
|
||||||
@Consumes(CurrencyDto.BASE_MEDIA_TYPE)
|
@Consumes(CurrencyDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -89,6 +92,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#createCurrency(CurrencyDto)
|
* @see ConfigApi#createCurrency(CurrencyDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("currency:create")
|
||||||
@POST
|
@POST
|
||||||
@Path("/currencies")
|
@Path("/currencies")
|
||||||
@Produces(CurrencyDto.BASE_MEDIA_TYPE)
|
@Produces(CurrencyDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -99,6 +103,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#updateCurrency(CurrencyDto)
|
* @see ConfigApi#updateCurrency(CurrencyDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("currency:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(CurrencyDto.BASE_MEDIA_TYPE)
|
@Produces(CurrencyDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(CurrencyDto.BASE_MEDIA_TYPE)
|
@Consumes(CurrencyDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -109,6 +114,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see ConfigApi#deleteCurrency(CurrencyDto)
|
* @see ConfigApi#deleteCurrency(CurrencyDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("currency:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteCurrency(@EndpointLink("edit") @BinderParam(BindToPath.class) CurrencyDto currency);
|
ListenableFuture<Void> deleteCurrency(@EndpointLink("edit") @BinderParam(BindToPath.class) CurrencyDto currency);
|
||||||
|
|
||||||
|
@ -117,6 +123,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#listCostCodes()
|
* @see PricingApi#listCostCodes()
|
||||||
*/
|
*/
|
||||||
|
@Named("costcode:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/costcodes")
|
@Path("/costcodes")
|
||||||
@Consumes(CostCodesDto.BASE_MEDIA_TYPE)
|
@Consumes(CostCodesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -126,6 +133,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#getCostCode(Integer)
|
* @see PricingApi#getCostCode(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("costcode:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/costcodes/{costcode}")
|
@Path("/costcodes/{costcode}")
|
||||||
@Consumes(CostCodeDto.BASE_MEDIA_TYPE)
|
@Consumes(CostCodeDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -136,6 +144,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#createCostCode(CostCodeDto)
|
* @see PricingApi#createCostCode(CostCodeDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("costcode:create")
|
||||||
@POST
|
@POST
|
||||||
@Path("/costcodes")
|
@Path("/costcodes")
|
||||||
@Produces(CostCodeDto.BASE_MEDIA_TYPE)
|
@Produces(CostCodeDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -146,6 +155,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#updateCostCode(CostCodeDto)
|
* @see PricingApi#updateCostCode(CostCodeDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("costcode:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(CostCodeDto.BASE_MEDIA_TYPE)
|
@Produces(CostCodeDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(CostCodeDto.BASE_MEDIA_TYPE)
|
@Consumes(CostCodeDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -156,6 +166,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#deleteCostCode(CostCodeDto)
|
* @see PricingApi#deleteCostCode(CostCodeDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("costcode:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteCostCode(@EndpointLink("edit") @BinderParam(BindToPath.class) CostCodeDto costcode);
|
ListenableFuture<Void> deleteCostCode(@EndpointLink("edit") @BinderParam(BindToPath.class) CostCodeDto costcode);
|
||||||
|
|
||||||
|
@ -164,6 +175,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#listPricingTemplates()
|
* @see PricingApi#listPricingTemplates()
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingtemplate:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/pricingtemplates")
|
@Path("/pricingtemplates")
|
||||||
@Consumes(PricingTemplatesDto.BASE_MEDIA_TYPE)
|
@Consumes(PricingTemplatesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -173,6 +185,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#getPricingTemplate(Integer)
|
* @see PricingApi#getPricingTemplate(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingtemplate:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/pricingtemplates/{pricingtemplate}")
|
@Path("/pricingtemplates/{pricingtemplate}")
|
||||||
@Consumes(PricingTemplateDto.BASE_MEDIA_TYPE)
|
@Consumes(PricingTemplateDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -183,6 +196,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#createPricingTemplate(PricingTemplateDto)
|
* @see PricingApi#createPricingTemplate(PricingTemplateDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingtemplate:create")
|
||||||
@POST
|
@POST
|
||||||
@Path("/pricingtemplates")
|
@Path("/pricingtemplates")
|
||||||
@Produces(PricingTemplateDto.BASE_MEDIA_TYPE)
|
@Produces(PricingTemplateDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -194,6 +208,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#updatePricingTemplate(PricingTemplateDto)
|
* @see PricingApi#updatePricingTemplate(PricingTemplateDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingtemplate:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(PricingTemplateDto.BASE_MEDIA_TYPE)
|
@Produces(PricingTemplateDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(PricingTemplateDto.BASE_MEDIA_TYPE)
|
@Consumes(PricingTemplateDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -204,6 +219,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#deletePricingTemplate(PricingTemplateDto)
|
* @see PricingApi#deletePricingTemplate(PricingTemplateDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingtemplate:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deletePricingTemplate(
|
ListenableFuture<Void> deletePricingTemplate(
|
||||||
@EndpointLink("edit") @BinderParam(BindToPath.class) PricingTemplateDto pricingtemplate);
|
@EndpointLink("edit") @BinderParam(BindToPath.class) PricingTemplateDto pricingtemplate);
|
||||||
|
@ -213,6 +229,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#getCostCodeCurrency(Integer)
|
* @see PricingApi#getCostCodeCurrency(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("costcodecurrency:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/costcodes/{costcode}/currencies")
|
@Path("/costcodes/{costcode}/currencies")
|
||||||
@Consumes(CostCodeCurrenciesDto.BASE_MEDIA_TYPE)
|
@Consumes(CostCodeCurrenciesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -224,6 +241,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#updateCostCodeCurrencies(CostCodeCurrenciesDto)
|
* @see PricingApi#updateCostCodeCurrencies(CostCodeCurrenciesDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("costcodecurrency:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/costcodes/{costcode}/currencies")
|
@Path("/costcodes/{costcode}/currencies")
|
||||||
@Produces(CostCodeCurrenciesDto.BASE_MEDIA_TYPE)
|
@Produces(CostCodeCurrenciesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -237,6 +255,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#getPricingCostCodes(Integer)
|
* @see PricingApi#getPricingCostCodes(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingcostcode:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/pricingtemplates/{pricingtemplate}/costcodes")
|
@Path("/pricingtemplates/{pricingtemplate}/costcodes")
|
||||||
@Consumes(PricingCostCodesDto.BASE_MEDIA_TYPE)
|
@Consumes(PricingCostCodesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -247,6 +266,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#getPricingCostCode(Integer)
|
* @see PricingApi#getPricingCostCode(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingcostcode:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/pricingtemplates/{pricingtemplate}/costcodes/{costcode}")
|
@Path("/pricingtemplates/{pricingtemplate}/costcodes/{costcode}")
|
||||||
@Consumes(PricingCostCodeDto.BASE_MEDIA_TYPE)
|
@Consumes(PricingCostCodeDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -258,6 +278,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#updatePricingCostCode(PricingCostCodeDto)
|
* @see PricingApi#updatePricingCostCode(PricingCostCodeDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingcostcode:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/pricingtemplates/{pricingtemplate}/costcodes/{costcode}")
|
@Path("/pricingtemplates/{pricingtemplate}/costcodes/{costcode}")
|
||||||
@Produces(PricingCostCodeDto.BASE_MEDIA_TYPE)
|
@Produces(PricingCostCodeDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -272,6 +293,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#getPricingTiers(Integer)
|
* @see PricingApi#getPricingTiers(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingtier:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/pricingtemplates/{pricingtemplate}/tiers")
|
@Path("/pricingtemplates/{pricingtemplate}/tiers")
|
||||||
@Consumes(PricingTiersDto.BASE_MEDIA_TYPE)
|
@Consumes(PricingTiersDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -282,6 +304,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#getPricingTier(Integer)
|
* @see PricingApi#getPricingTier(Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingtier:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/pricingtemplates/{pricingtemplate}/tiers/{tier}")
|
@Path("/pricingtemplates/{pricingtemplate}/tiers/{tier}")
|
||||||
@Consumes(PricingTierDto.BASE_MEDIA_TYPE)
|
@Consumes(PricingTierDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -293,6 +316,7 @@ public interface PricingAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see PricingApi#updatePricingTier(PricingTierDto)
|
* @see PricingApi#updatePricingTier(PricingTierDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("pricingtier:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/pricingtemplates/{pricingtemplate}/tiers/{tier}")
|
@Path("/pricingtemplates/{pricingtemplate}/tiers/{tier}")
|
||||||
@Produces(PricingTierDto.BASE_MEDIA_TYPE)
|
@Produces(PricingTierDto.BASE_MEDIA_TYPE)
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
package org.jclouds.abiquo.features;
|
package org.jclouds.abiquo.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;
|
||||||
|
|
||||||
|
@ -55,6 +56,7 @@ public interface TaskAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see TaskApi#getTask(RESTLink)
|
* @see TaskApi#getTask(RESTLink)
|
||||||
*/
|
*/
|
||||||
|
@Named("task:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(TaskDto.BASE_MEDIA_TYPE)
|
@Consumes(TaskDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -64,6 +66,7 @@ public interface TaskAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see TaskApi#listTasks(SingleResourceTransportDto)
|
* @see TaskApi#listTasks(SingleResourceTransportDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("task:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(TasksDto.BASE_MEDIA_TYPE)
|
@Consumes(TasksDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
package org.jclouds.abiquo.features;
|
package org.jclouds.abiquo.features;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.DELETE;
|
import javax.ws.rs.DELETE;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
|
@ -73,6 +74,7 @@ public interface VirtualMachineTemplateAsyncApi {
|
||||||
* @see VirtualMachineTemplateApi#listVirtualMachineTemplates(Integer,
|
* @see VirtualMachineTemplateApi#listVirtualMachineTemplates(Integer,
|
||||||
* Integer)
|
* Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("template:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates")
|
@Path("/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates")
|
||||||
@Consumes(VirtualMachineTemplatesDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineTemplatesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -85,6 +87,7 @@ public interface VirtualMachineTemplateAsyncApi {
|
||||||
* @see VirtualMachineTemplateApi#listVirtualMachineTemplates(Integer,
|
* @see VirtualMachineTemplateApi#listVirtualMachineTemplates(Integer,
|
||||||
* Integer, VirtualMachineTemplateOptions)
|
* Integer, VirtualMachineTemplateOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("template:list")
|
||||||
@GET
|
@GET
|
||||||
@Path("/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates")
|
@Path("/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates")
|
||||||
@Consumes(VirtualMachineTemplatesDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineTemplatesDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -97,6 +100,7 @@ public interface VirtualMachineTemplateAsyncApi {
|
||||||
* @see VirtualMachineTemplateApi#getVirtualMachineTemplate(Integer, Integer,
|
* @see VirtualMachineTemplateApi#getVirtualMachineTemplate(Integer, Integer,
|
||||||
* Integer)
|
* Integer)
|
||||||
*/
|
*/
|
||||||
|
@Named("template:get")
|
||||||
@GET
|
@GET
|
||||||
@Path("/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}")
|
@Path("/{enterprise}/datacenterrepositories/{datacenterrepository}/virtualmachinetemplates/{virtualmachinetemplate}")
|
||||||
@Consumes(VirtualMachineTemplateDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineTemplateDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -109,6 +113,7 @@ public interface VirtualMachineTemplateAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see VirtualMachineTemplateApi#updateVirtualMachineTemplate(VirtualMachineTemplateDto)
|
* @see VirtualMachineTemplateApi#updateVirtualMachineTemplate(VirtualMachineTemplateDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("template:update")
|
||||||
@PUT
|
@PUT
|
||||||
@Produces(VirtualMachineTemplateDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualMachineTemplateDto.BASE_MEDIA_TYPE)
|
||||||
@Consumes(VirtualMachineTemplateDto.BASE_MEDIA_TYPE)
|
@Consumes(VirtualMachineTemplateDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -119,6 +124,7 @@ public interface VirtualMachineTemplateAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see VirtualMachineTemplateApi#deleteVirtualMachineTemplate(VirtualMachineTemplateDto)
|
* @see VirtualMachineTemplateApi#deleteVirtualMachineTemplate(VirtualMachineTemplateDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("template:delete")
|
||||||
@DELETE
|
@DELETE
|
||||||
ListenableFuture<Void> deleteVirtualMachineTemplate(
|
ListenableFuture<Void> deleteVirtualMachineTemplate(
|
||||||
@EndpointLink("edit") @BinderParam(BindToPath.class) VirtualMachineTemplateDto template);
|
@EndpointLink("edit") @BinderParam(BindToPath.class) VirtualMachineTemplateDto template);
|
||||||
|
@ -127,6 +133,7 @@ public interface VirtualMachineTemplateAsyncApi {
|
||||||
* @see VirtualMachineTemplateApi#createPersistentVirtualMachineTemplate(DatacenterRepositoryDto,
|
* @see VirtualMachineTemplateApi#createPersistentVirtualMachineTemplate(DatacenterRepositoryDto,
|
||||||
* VirtualMachineTemplatePersistentDto)
|
* VirtualMachineTemplatePersistentDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("template:createpersistent")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
@Produces(VirtualMachineTemplatePersistentDto.BASE_MEDIA_TYPE)
|
@Produces(VirtualMachineTemplatePersistentDto.BASE_MEDIA_TYPE)
|
||||||
|
@ -142,6 +149,7 @@ public interface VirtualMachineTemplateAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see VirtualMachineTemplateApi#listConversions(VirtualMachineTemplateDto)
|
* @see VirtualMachineTemplateApi#listConversions(VirtualMachineTemplateDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("conversion:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(ConversionsDto.BASE_MEDIA_TYPE)
|
@Consumes(ConversionsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -152,6 +160,7 @@ public interface VirtualMachineTemplateAsyncApi {
|
||||||
* @see VirtualMachineTemplateApi#listConversions(VirtualMachineTemplateDto,
|
* @see VirtualMachineTemplateApi#listConversions(VirtualMachineTemplateDto,
|
||||||
* ConversionOptions)
|
* ConversionOptions)
|
||||||
*/
|
*/
|
||||||
|
@Named("conversion:list")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(ConversionsDto.BASE_MEDIA_TYPE)
|
@Consumes(ConversionsDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -163,6 +172,7 @@ public interface VirtualMachineTemplateAsyncApi {
|
||||||
* @see VirtualMachineTemplateApi#getConversion(VirtualMachineTemplateDto,
|
* @see VirtualMachineTemplateApi#getConversion(VirtualMachineTemplateDto,
|
||||||
* DiskFormatType)
|
* DiskFormatType)
|
||||||
*/
|
*/
|
||||||
|
@Named("conversion:get")
|
||||||
@GET
|
@GET
|
||||||
@Consumes(ConversionDto.BASE_MEDIA_TYPE)
|
@Consumes(ConversionDto.BASE_MEDIA_TYPE)
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
|
@ -174,6 +184,7 @@ public interface VirtualMachineTemplateAsyncApi {
|
||||||
/**
|
/**
|
||||||
* @see VirtualMachineTemplateApi#updateConversion(ConversionDto)
|
* @see VirtualMachineTemplateApi#updateConversion(ConversionDto)
|
||||||
*/
|
*/
|
||||||
|
@Named("conversion:request")
|
||||||
@PUT
|
@PUT
|
||||||
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
@ResponseParser(ReturnTaskReferenceOrNull.class)
|
||||||
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
@Consumes(AcceptedRequestDto.BASE_MEDIA_TYPE)
|
||||||
|
|
|
@ -0,0 +1,75 @@
|
||||||
|
/**
|
||||||
|
* Licensed to jclouds, Inc. (jclouds) under one or more
|
||||||
|
* contributor license agreements. See the NOTICE file
|
||||||
|
* distributed with this work for additional information
|
||||||
|
* regarding copyright ownership. jclouds licenses this file
|
||||||
|
* to you under the Apache License, Version 2.0 (the
|
||||||
|
* "License"); you may not use this file except in compliance
|
||||||
|
* with the License. You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing,
|
||||||
|
* software distributed under the License is distributed on an
|
||||||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*/
|
||||||
|
package org.jclouds.abiquo.features;
|
||||||
|
|
||||||
|
import static com.google.common.collect.Iterables.concat;
|
||||||
|
import static com.google.common.collect.Iterables.filter;
|
||||||
|
import static com.google.common.collect.Iterables.isEmpty;
|
||||||
|
import static com.google.common.collect.Iterables.size;
|
||||||
|
import static com.google.common.collect.Iterables.transform;
|
||||||
|
import static org.testng.Assert.fail;
|
||||||
|
|
||||||
|
import java.lang.reflect.Method;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
|
import javax.inject.Named;
|
||||||
|
|
||||||
|
import org.jclouds.abiquo.config.AbiquoRestClientModule;
|
||||||
|
import org.testng.annotations.Test;
|
||||||
|
import org.testng.util.Strings;
|
||||||
|
|
||||||
|
import com.google.common.base.Function;
|
||||||
|
import com.google.common.base.Joiner;
|
||||||
|
import com.google.common.base.Predicate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check that no method in the apis is missing the {@link Named} annotation.
|
||||||
|
*
|
||||||
|
* @author Ignasi Barrera
|
||||||
|
*/
|
||||||
|
@Test(groups = "unit", testName = "MissingNamedMethodsTest")
|
||||||
|
public class MissingNamedMethodsTest {
|
||||||
|
|
||||||
|
public void testMissingNamedMethods() {
|
||||||
|
Collection<Class<?>> apis = AbiquoRestClientModule.DELEGATE_MAP.values();
|
||||||
|
|
||||||
|
Iterable<String> missing = transform(concat(transform(apis, new Function<Class<?>, Iterable<Method>>() {
|
||||||
|
@Override
|
||||||
|
public Iterable<Method> apply(Class<?> input) {
|
||||||
|
return filter(Arrays.asList(input.getMethods()), new Predicate<Method>() {
|
||||||
|
@Override
|
||||||
|
public boolean apply(Method input) {
|
||||||
|
Named named = input.getAnnotation(Named.class);
|
||||||
|
return named == null || Strings.isNullOrEmpty(named.value()) || !named.value().matches(".+:.+");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})), new Function<Method, String>() {
|
||||||
|
@Override
|
||||||
|
public String apply(Method input) {
|
||||||
|
return input.getDeclaringClass().getSimpleName() + "." + input.getName();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!isEmpty(missing)) {
|
||||||
|
fail(size(missing) + " methods missing @Named annotation:\n" + Joiner.on('\n').join(missing));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue