Issue #1184: fix for GleSYS provider: @Named annotations on all async api methods.

This commit is contained in:
petergardfjall 2013-01-17 09:32:22 +01:00
parent 155bdb6d73
commit 12963defdb
10 changed files with 67 additions and 10 deletions

View File

@ -29,7 +29,7 @@ import com.google.common.collect.FluentIterable;
* *
* @author Adam Lowe * @author Adam Lowe
* @see ArchiveAsyncApi * @see ArchiveAsyncApi
* @see <a href="https://customer.glesys.com/api.php" /> * @see <a href="https://github.com/GleSYS/API/wiki/API-Documentation" />
*/ */
public interface ArchiveApi { public interface ArchiveApi {

View File

@ -18,6 +18,7 @@
*/ */
package org.jclouds.glesys.features; package org.jclouds.glesys.features;
import javax.inject.Named;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam; import javax.ws.rs.FormParam;
import javax.ws.rs.GET; import javax.ws.rs.GET;
@ -43,7 +44,7 @@ import com.google.common.util.concurrent.ListenableFuture;
* *
* @author Adam Lowe * @author Adam Lowe
* @see ArchiveApi * @see ArchiveApi
* @see <a href="https://customer.glesys.com/api.php" /> * @see <a href="https://github.com/GleSYS/API/wiki/API-Documentation" />
*/ */
@RequestFilters(BasicAuthentication.class) @RequestFilters(BasicAuthentication.class)
public interface ArchiveAsyncApi { public interface ArchiveAsyncApi {
@ -51,6 +52,7 @@ public interface ArchiveAsyncApi {
/** /**
* @see ArchiveApi#list * @see ArchiveApi#list
*/ */
@Named("archive:list")
@POST @POST
@Path("/archive/list/format/json") @Path("/archive/list/format/json")
@SelectJson("archives") @SelectJson("archives")
@ -61,6 +63,7 @@ public interface ArchiveAsyncApi {
/** /**
* @see ArchiveApi#get * @see ArchiveApi#get
*/ */
@Named("archive:details")
@POST @POST
@Path("/archive/details/format/json") @Path("/archive/details/format/json")
@SelectJson("details") @SelectJson("details")
@ -71,6 +74,7 @@ public interface ArchiveAsyncApi {
/** /**
* @see ArchiveApi#createWithCredentialsAndSize * @see ArchiveApi#createWithCredentialsAndSize
*/ */
@Named("archive:create")
@POST @POST
@Path("/archive/create/format/json") @Path("/archive/create/format/json")
@SelectJson("details") @SelectJson("details")
@ -81,6 +85,7 @@ public interface ArchiveAsyncApi {
/** /**
* @see ArchiveApi#delete * @see ArchiveApi#delete
*/ */
@Named("archive:delete")
@POST @POST
@Path("/archive/delete/format/json") @Path("/archive/delete/format/json")
ListenableFuture<Void> delete(@FormParam("username") String username); ListenableFuture<Void> delete(@FormParam("username") String username);
@ -88,6 +93,7 @@ public interface ArchiveAsyncApi {
/** /**
* @see ArchiveApi#resize * @see ArchiveApi#resize
*/ */
@Named("archive:resize")
@POST @POST
@Path("/archive/resize/format/json") @Path("/archive/resize/format/json")
@SelectJson("details") @SelectJson("details")
@ -96,6 +102,7 @@ public interface ArchiveAsyncApi {
/** /**
* @see ArchiveApi#changePassword * @see ArchiveApi#changePassword
*/ */
@Named("archive:changepassword")
@POST @POST
@Path("/archive/changepassword/format/json") @Path("/archive/changepassword/format/json")
@SelectJson("details") @SelectJson("details")
@ -105,6 +112,7 @@ public interface ArchiveAsyncApi {
/** /**
* @see org.jclouds.glesys.features.ArchiveApi#getAllowedArguments * @see org.jclouds.glesys.features.ArchiveApi#getAllowedArguments
*/ */
@Named("archive:allowedarguments")
@GET @GET
@Path("/archive/allowedarguments/format/json") @Path("/archive/allowedarguments/format/json")
@SelectJson("argumentslist") @SelectJson("argumentslist")

View File

@ -34,7 +34,7 @@ import com.google.common.collect.FluentIterable;
* *
* @author Adam Lowe * @author Adam Lowe
* @see DomainAsyncApi * @see DomainAsyncApi
* @see <a href="https://customer.glesys.com/api.php" /> * @see <a href="https://github.com/GleSYS/API/wiki/API-Documentation" />
*/ */
public interface DomainApi { public interface DomainApi {

View File

@ -20,6 +20,7 @@ package org.jclouds.glesys.features;
import java.util.Set; import java.util.Set;
import javax.inject.Named;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam; import javax.ws.rs.FormParam;
import javax.ws.rs.POST; import javax.ws.rs.POST;
@ -48,7 +49,7 @@ import com.google.common.util.concurrent.ListenableFuture;
* *
* @author Adam Lowe * @author Adam Lowe
* @see DomainApi * @see DomainApi
* @see <a href="https://customer.glesys.com/api.php" /> * @see <a href="https://github.com/GleSYS/API/wiki/API-Documentation" />
*/ */
@RequestFilters(BasicAuthentication.class) @RequestFilters(BasicAuthentication.class)
public interface DomainAsyncApi { public interface DomainAsyncApi {
@ -56,6 +57,7 @@ public interface DomainAsyncApi {
/** /**
* @see org.jclouds.glesys.features.DomainApi#list * @see org.jclouds.glesys.features.DomainApi#list
*/ */
@Named("domain:list")
@POST @POST
@Path("/domain/list/format/json") @Path("/domain/list/format/json")
@SelectJson("domains") @SelectJson("domains")
@ -66,6 +68,7 @@ public interface DomainAsyncApi {
/** /**
* @see org.jclouds.glesys.features.DomainApi#get * @see org.jclouds.glesys.features.DomainApi#get
*/ */
@Named("domain:details")
@POST @POST
@Path("/domain/details/format/json") @Path("/domain/details/format/json")
@SelectJson("domain") @SelectJson("domain")
@ -76,6 +79,7 @@ public interface DomainAsyncApi {
/** /**
* @see DomainApi#create * @see DomainApi#create
*/ */
@Named("domain:add")
@POST @POST
@Path("/domain/add/format/json") @Path("/domain/add/format/json")
@SelectJson("domain") @SelectJson("domain")
@ -85,6 +89,7 @@ public interface DomainAsyncApi {
/** /**
* @see DomainApi#update * @see DomainApi#update
*/ */
@Named("domain:edit")
@POST @POST
@Path("/domain/edit/format/json") @Path("/domain/edit/format/json")
@SelectJson("domain") @SelectJson("domain")
@ -95,6 +100,7 @@ public interface DomainAsyncApi {
/** /**
* @see DomainApi#delete * @see DomainApi#delete
*/ */
@Named("domain:delete")
@POST @POST
@Path("/domain/delete/format/json") @Path("/domain/delete/format/json")
ListenableFuture<Void> delete(@FormParam("domainname") String domain); ListenableFuture<Void> delete(@FormParam("domainname") String domain);
@ -102,6 +108,7 @@ public interface DomainAsyncApi {
/** /**
* @see DomainApi#listRecords * @see DomainApi#listRecords
*/ */
@Named("domain:listrecords")
@POST @POST
@Path("/domain/listrecords/format/json") @Path("/domain/listrecords/format/json")
@SelectJson("records") @SelectJson("records")
@ -111,6 +118,7 @@ public interface DomainAsyncApi {
/** /**
* @see DomainApi#createRecord * @see DomainApi#createRecord
*/ */
@Named("domain:addrecord")
@POST @POST
@Path("/domain/addrecord/format/json") @Path("/domain/addrecord/format/json")
@SelectJson("record") @SelectJson("record")
@ -122,6 +130,7 @@ public interface DomainAsyncApi {
/** /**
* @see DomainApi#updateRecord * @see DomainApi#updateRecord
*/ */
@Named("domain:updaterecord")
@POST @POST
@Path("/domain/updaterecord/format/json") @Path("/domain/updaterecord/format/json")
@SelectJson("record") @SelectJson("record")
@ -131,6 +140,7 @@ public interface DomainAsyncApi {
/** /**
* @see DomainApi#deleteRecord * @see DomainApi#deleteRecord
*/ */
@Named("domain:deleterecord")
@POST @POST
@Path("/domain/deleterecord/format/json") @Path("/domain/deleterecord/format/json")
ListenableFuture<Void> deleteRecord(@FormParam("recordid") String recordId); ListenableFuture<Void> deleteRecord(@FormParam("recordid") String recordId);

View File

@ -32,7 +32,7 @@ import com.google.common.collect.FluentIterable;
* *
* @author Adam Lowe * @author Adam Lowe
* @see org.jclouds.glesys.features.EmailAccountAsyncApi * @see org.jclouds.glesys.features.EmailAccountAsyncApi
* @see <a href="https://customer.glesys.com/api.php" /> * @see <a href="https://github.com/GleSYS/API/wiki/API-Documentation" />
*/ */
public interface EmailAccountApi { public interface EmailAccountApi {

View File

@ -18,6 +18,7 @@
*/ */
package org.jclouds.glesys.features; package org.jclouds.glesys.features;
import javax.inject.Named;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam; import javax.ws.rs.FormParam;
import javax.ws.rs.POST; import javax.ws.rs.POST;
@ -46,7 +47,7 @@ import com.google.common.util.concurrent.ListenableFuture;
* *
* @author Adam Lowe * @author Adam Lowe
* @see org.jclouds.glesys.features.EmailAccountApi * @see org.jclouds.glesys.features.EmailAccountApi
* @see <a href="https://customer.glesys.com/api.php" /> * @see <a href="https://github.com/GleSYS/API/wiki/API-Documentation" />
*/ */
@RequestFilters(BasicAuthentication.class) @RequestFilters(BasicAuthentication.class)
public interface EmailAccountAsyncApi { public interface EmailAccountAsyncApi {
@ -54,6 +55,7 @@ public interface EmailAccountAsyncApi {
/** /**
* @see org.jclouds.glesys.features.EmailAccountApi#getOverview * @see org.jclouds.glesys.features.EmailAccountApi#getOverview
*/ */
@Named("email:overview")
@POST @POST
@Path("/email/overview/format/json") @Path("/email/overview/format/json")
@SelectJson("overview") @SelectJson("overview")
@ -64,6 +66,7 @@ public interface EmailAccountAsyncApi {
/** /**
* @see org.jclouds.glesys.features.EmailAccountApi#listDomain * @see org.jclouds.glesys.features.EmailAccountApi#listDomain
*/ */
@Named("email:list:accounts")
@POST @POST
@Path("/email/list/format/json") @Path("/email/list/format/json")
@SelectJson("emailaccounts") @SelectJson("emailaccounts")
@ -74,6 +77,7 @@ public interface EmailAccountAsyncApi {
/** /**
* @see org.jclouds.glesys.features.EmailAccountApi#listAliasesInDomain * @see org.jclouds.glesys.features.EmailAccountApi#listAliasesInDomain
*/ */
@Named("email:list:aliases")
@POST @POST
@Path("/email/list/format/json") @Path("/email/list/format/json")
@SelectJson("emailaliases") @SelectJson("emailaliases")
@ -84,6 +88,7 @@ public interface EmailAccountAsyncApi {
/** /**
* @see org.jclouds.glesys.features.EmailAccountApi#createWithPassword * @see org.jclouds.glesys.features.EmailAccountApi#createWithPassword
*/ */
@Named("email:createaccount")
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@SelectJson("emailaccount") @SelectJson("emailaccount")
@ -93,6 +98,7 @@ public interface EmailAccountAsyncApi {
/** /**
* @see org.jclouds.glesys.features.EmailAccountApi#createAlias * @see org.jclouds.glesys.features.EmailAccountApi#createAlias
*/ */
@Named("email:createalias")
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@SelectJson("alias") @SelectJson("alias")
@ -102,6 +108,7 @@ public interface EmailAccountAsyncApi {
/** /**
* @see org.jclouds.glesys.features.EmailAccountApi#update * @see org.jclouds.glesys.features.EmailAccountApi#update
*/ */
@Named("email:editaccount")
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@SelectJson("emailaccount") @SelectJson("emailaccount")
@ -111,6 +118,7 @@ public interface EmailAccountAsyncApi {
/** /**
* @see org.jclouds.glesys.features.EmailAccountApi#updateAlias * @see org.jclouds.glesys.features.EmailAccountApi#updateAlias
*/ */
@Named("email:editalias")
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@SelectJson("alias") @SelectJson("alias")
@ -120,6 +128,7 @@ public interface EmailAccountAsyncApi {
/** /**
* @see org.jclouds.glesys.features.EmailAccountApi#delete * @see org.jclouds.glesys.features.EmailAccountApi#delete
*/ */
@Named("email:delete")
@POST @POST
@Path("/email/delete/format/json") @Path("/email/delete/format/json")
@Fallback(TrueOnNotFoundOr404.class) @Fallback(TrueOnNotFoundOr404.class)

View File

@ -29,7 +29,7 @@ import com.google.common.collect.FluentIterable;
* *
* @author Adrian Cole, Mattias Holmqvist, Adam Lowe * @author Adrian Cole, Mattias Holmqvist, Adam Lowe
* @see IpAsyncApi * @see IpAsyncApi
* @see <a href="https://customer.glesys.com/api.php" /> * @see <a href="https://github.com/GleSYS/API/wiki/API-Documentation" />
*/ */
public interface IpApi { public interface IpApi {
/** /**

View File

@ -18,6 +18,7 @@
*/ */
package org.jclouds.glesys.features; package org.jclouds.glesys.features;
import javax.inject.Named;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam; import javax.ws.rs.FormParam;
import javax.ws.rs.GET; import javax.ws.rs.GET;
@ -45,13 +46,14 @@ import com.google.common.util.concurrent.ListenableFuture;
* *
* @author Adrian Cole, Mattias Holmqvist, Adam Lowe * @author Adrian Cole, Mattias Holmqvist, Adam Lowe
* @see IpApi * @see IpApi
* @see <a href="https://customer.glesys.com/api.php" /> * @see <a href="https://github.com/GleSYS/API/wiki/API-Documentation" />
*/ */
@RequestFilters(BasicAuthentication.class) @RequestFilters(BasicAuthentication.class)
public interface IpAsyncApi { public interface IpAsyncApi {
/** /**
* @see IpApi#listFree * @see IpApi#listFree
*/ */
@Named("ip:listfree")
@GET @GET
@Path("/ip/listfree/ipversion/{ipversion}/datacenter/{datacenter}/platform/{platform}/format/json") @Path("/ip/listfree/ipversion/{ipversion}/datacenter/{datacenter}/platform/{platform}/format/json")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -64,6 +66,7 @@ public interface IpAsyncApi {
/** /**
* @see IpApi#take * @see IpApi#take
*/ */
@Named("ip:take")
@POST @POST
@Path("/ip/take/format/json") @Path("/ip/take/format/json")
@SelectJson("details") @SelectJson("details")
@ -73,6 +76,7 @@ public interface IpAsyncApi {
/** /**
* @see IpApi#release * @see IpApi#release
*/ */
@Named("ip:release")
@POST @POST
@Path("/ip/release/format/json") @Path("/ip/release/format/json")
@SelectJson("details") @SelectJson("details")
@ -82,6 +86,7 @@ public interface IpAsyncApi {
/** /**
* @see IpApi#list * @see IpApi#list
*/ */
@Named("ip:listown")
@GET @GET
@Path("/ip/listown/format/json") @Path("/ip/listown/format/json")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -92,6 +97,7 @@ public interface IpAsyncApi {
/** /**
* @see IpApi#get * @see IpApi#get
*/ */
@Named("ip:details")
@GET @GET
@Path("/ip/details/ipaddress/{ipaddress}/format/json") @Path("/ip/details/ipaddress/{ipaddress}/format/json")
@SelectJson("details") @SelectJson("details")
@ -102,6 +108,7 @@ public interface IpAsyncApi {
/** /**
* @see IpApi#addToServer * @see IpApi#addToServer
*/ */
@Named("ip:add")
@POST @POST
@Path("/ip/add/format/json") @Path("/ip/add/format/json")
@SelectJson("details") @SelectJson("details")
@ -112,6 +119,7 @@ public interface IpAsyncApi {
/** /**
* @see IpApi#removeFromServer * @see IpApi#removeFromServer
*/ */
@Named("ip:remove")
@POST @POST
@Path("/ip/remove/format/json") @Path("/ip/remove/format/json")
@SelectJson("details") @SelectJson("details")
@ -122,6 +130,7 @@ public interface IpAsyncApi {
/** /**
* @see IpApi#removeFromServer * @see IpApi#removeFromServer
*/ */
@Named("ip:remove:release")
@POST @POST
@FormParams(keys = "release", values = "true") @FormParams(keys = "release", values = "true")
@Path("/ip/remove/format/json") @Path("/ip/remove/format/json")
@ -133,6 +142,7 @@ public interface IpAsyncApi {
/** /**
* @see IpApi#setPtr * @see IpApi#setPtr
*/ */
@Named("ip:setptr")
@POST @POST
@Path("/ip/setptr/format/json") @Path("/ip/setptr/format/json")
@SelectJson("details") @SelectJson("details")
@ -143,6 +153,7 @@ public interface IpAsyncApi {
/** /**
* @see IpApi#resetPtr * @see IpApi#resetPtr
*/ */
@Named("ip:resetptr")
@POST @POST
@Path("/ip/resetptr/format/json") @Path("/ip/resetptr/format/json")
@SelectJson("details") @SelectJson("details")

View File

@ -44,7 +44,7 @@ import com.google.common.collect.FluentIterable;
* @author Adrian Cole * @author Adrian Cole
* @author Adam Lowe * @author Adam Lowe
* @see ServerAsyncApi * @see ServerAsyncApi
* @see <a href="https://customer.glesys.com/api.php" /> * @see <a href="https://github.com/GleSYS/API/wiki/API-Documentation" />
*/ */
public interface ServerApi { public interface ServerApi {

View File

@ -21,6 +21,7 @@ package org.jclouds.glesys.features;
import java.util.Map; import java.util.Map;
import java.util.SortedMap; import java.util.SortedMap;
import javax.inject.Named;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam; import javax.ws.rs.FormParam;
import javax.ws.rs.GET; import javax.ws.rs.GET;
@ -64,7 +65,7 @@ import com.google.common.util.concurrent.ListenableFuture;
* @author Adrian Cole * @author Adrian Cole
* @author Adam Lowe * @author Adam Lowe
* @see ServerApi * @see ServerApi
* @see <a href="https://customer.glesys.com/api.php" /> * @see <a href="https://github.com/GleSYS/API/wiki/API-Documentation" />
*/ */
@RequestFilters(BasicAuthentication.class) @RequestFilters(BasicAuthentication.class)
public interface ServerAsyncApi { public interface ServerAsyncApi {
@ -72,6 +73,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#list * @see ServerApi#list
*/ */
@Named("server:list")
@POST @POST
@Path("/server/list/format/json") @Path("/server/list/format/json")
@SelectJson("servers") @SelectJson("servers")
@ -82,6 +84,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#get * @see ServerApi#get
*/ */
@Named("server:details")
@POST @POST
@Path("/server/details/format/json") @Path("/server/details/format/json")
@SelectJson("server") @SelectJson("server")
@ -93,6 +96,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#getStatus * @see ServerApi#getStatus
*/ */
@Named("server:status")
@POST @POST
@Path("/server/status/format/json") @Path("/server/status/format/json")
@SelectJson("server") @SelectJson("server")
@ -103,6 +107,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#getLimits * @see ServerApi#getLimits
*/ */
@Named("server:limits")
@POST @POST
@Path("/server/limits/format/json") @Path("/server/limits/format/json")
@SelectJson("limits") @SelectJson("limits")
@ -113,6 +118,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#getConsole * @see ServerApi#getConsole
*/ */
@Named("server:console")
@POST @POST
@Path("/server/console/format/json") @Path("/server/console/format/json")
@SelectJson("console") @SelectJson("console")
@ -123,6 +129,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#getAllowedArgumentsForCreateByPlatform * @see ServerApi#getAllowedArgumentsForCreateByPlatform
*/ */
@Named("server:allowedarguments")
@GET @GET
@Path("/server/allowedarguments/format/json") @Path("/server/allowedarguments/format/json")
@SelectJson("argumentslist") @SelectJson("argumentslist")
@ -132,6 +139,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#listTemplates * @see ServerApi#listTemplates
*/ */
@Named("server:templates")
@GET @GET
@Path("/server/templates/format/json") @Path("/server/templates/format/json")
@ResponseParser(ParseTemplatesFromHttpResponse.class) @ResponseParser(ParseTemplatesFromHttpResponse.class)
@ -142,6 +150,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#stop * @see ServerApi#stop
*/ */
@Named("server:resetlimit")
@POST @POST
@Path("/server/resetlimit/format/json") @Path("/server/resetlimit/format/json")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -151,6 +160,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#reboot * @see ServerApi#reboot
*/ */
@Named("server:reboot")
@POST @POST
@SelectJson("server") @SelectJson("server")
@Path("/server/reboot/format/json") @Path("/server/reboot/format/json")
@ -160,6 +170,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#start * @see ServerApi#start
*/ */
@Named("server:start")
@POST @POST
@SelectJson("server") @SelectJson("server")
@Path("/server/start/format/json") @Path("/server/start/format/json")
@ -169,6 +180,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#stop * @see ServerApi#stop
*/ */
@Named("server:stop")
@POST @POST
@SelectJson("server") @SelectJson("server")
@Path("/server/stop/format/json") @Path("/server/stop/format/json")
@ -178,6 +190,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#hardStop * @see ServerApi#hardStop
*/ */
@Named("server:stop:hard")
@POST @POST
@SelectJson("server") @SelectJson("server")
@Path("/server/stop/format/json") @Path("/server/stop/format/json")
@ -188,6 +201,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#createWithHostnameAndRootPassword * @see ServerApi#createWithHostnameAndRootPassword
*/ */
@Named("server:create")
@POST @POST
@SelectJson("server") @SelectJson("server")
@Path("/server/create/format/json") @Path("/server/create/format/json")
@ -200,6 +214,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#clone * @see ServerApi#clone
*/ */
@Named("server:clone")
@POST @POST
@Path("/server/clone/format/json") @Path("/server/clone/format/json")
@SelectJson("server") @SelectJson("server")
@ -210,6 +225,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#update * @see ServerApi#update
*/ */
@Named("server:edit")
@POST @POST
@Path("/server/edit/format/json") @Path("/server/edit/format/json")
@SelectJson("server") @SelectJson("server")
@ -219,6 +235,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#destroy * @see ServerApi#destroy
*/ */
@Named("server:destroy")
@POST @POST
@Path("/server/destroy/format/json") @Path("/server/destroy/format/json")
ListenableFuture<Void> destroy(@FormParam("serverid") String id, DestroyServerOptions keepIp); ListenableFuture<Void> destroy(@FormParam("serverid") String id, DestroyServerOptions keepIp);
@ -226,6 +243,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#resetPassword * @see ServerApi#resetPassword
*/ */
@Named("server:resetpassword")
@POST @POST
@Path("/server/resetpassword/format/json") @Path("/server/resetpassword/format/json")
@SelectJson("server") @SelectJson("server")
@ -235,6 +253,7 @@ public interface ServerAsyncApi {
/** /**
* @see ServerApi#getResourceUsage * @see ServerApi#getResourceUsage
*/ */
@Named("server:resourceusage")
@POST @POST
@Path("/server/resourceusage/format/json") @Path("/server/resourceusage/format/json")
@SelectJson("usage") @SelectJson("usage")