Merge pull request #1299 from jclouds/issue1184-joyent

command names for joyent
This commit is contained in:
Adrian Cole 2013-02-04 11:07:25 -08:00
commit 75bde84898
5 changed files with 23 additions and 0 deletions

View File

@ -21,6 +21,7 @@ package org.jclouds.joyent.cloudapi.v6_5.features;
import java.net.URI; import java.net.URI;
import java.util.Map; import java.util.Map;
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;
@ -48,6 +49,7 @@ public interface DatacenterAsyncApi {
/** /**
* @see DatacenterApi#getDatacenters * @see DatacenterApi#getDatacenters
*/ */
@Named("ListDataCenters")
@GET @GET
@Path("/my/datacenters") @Path("/my/datacenters")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)

View File

@ -2,6 +2,7 @@ package org.jclouds.joyent.cloudapi.v6_5.features;
import java.util.Set; import java.util.Set;
import javax.inject.Named;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.GET; import javax.ws.rs.GET;
import javax.ws.rs.Path; import javax.ws.rs.Path;
@ -32,6 +33,7 @@ public interface DatasetAsyncApi {
/** /**
* @see DatasetApi#list * @see DatasetApi#list
*/ */
@Named("ListDatasets")
@GET @GET
@Path("/my/datasets") @Path("/my/datasets")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -41,6 +43,7 @@ public interface DatasetAsyncApi {
/** /**
* @see DatasetApi#get * @see DatasetApi#get
*/ */
@Named("GetDataset")
@GET @GET
@Path("/my/datasets/{id}") @Path("/my/datasets/{id}")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)

View File

@ -2,6 +2,7 @@ package org.jclouds.joyent.cloudapi.v6_5.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.DELETE; import javax.ws.rs.DELETE;
import javax.ws.rs.GET; import javax.ws.rs.GET;
@ -34,6 +35,7 @@ public interface KeyAsyncApi {
/** /**
* @see KeyApi#list * @see KeyApi#list
*/ */
@Named("ListKeys")
@GET @GET
@Path("/my/keys") @Path("/my/keys")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -43,6 +45,7 @@ public interface KeyAsyncApi {
/** /**
* @see KeyApi#get * @see KeyApi#get
*/ */
@Named("GetKey")
@GET @GET
@Path("/my/keys/{name}") @Path("/my/keys/{name}")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -52,6 +55,7 @@ public interface KeyAsyncApi {
/** /**
* @see KeyApi#create * @see KeyApi#create
*/ */
@Named("CreateKey")
@POST @POST
@Path("/my/keys") @Path("/my/keys")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -60,6 +64,7 @@ public interface KeyAsyncApi {
/** /**
* @see KeyApi#delete * @see KeyApi#delete
*/ */
@Named("DeleteKey")
@DELETE @DELETE
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@Path("/my/keys/{name}") @Path("/my/keys/{name}")

View File

@ -20,6 +20,7 @@ package org.jclouds.joyent.cloudapi.v6_5.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.DELETE; import javax.ws.rs.DELETE;
import javax.ws.rs.GET; import javax.ws.rs.GET;
@ -59,6 +60,7 @@ public interface MachineAsyncApi {
/** /**
* @see MachineApi#list * @see MachineApi#list
*/ */
@Named("ListMachines")
@GET @GET
@Path("/my/machines") @Path("/my/machines")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -68,6 +70,7 @@ public interface MachineAsyncApi {
/** /**
* @see MachineApi#get * @see MachineApi#get
*/ */
@Named("GetMachine")
@GET @GET
@Path("/my/machines/{id}") @Path("/my/machines/{id}")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -77,6 +80,7 @@ public interface MachineAsyncApi {
/** /**
* @see MachineApi#createWithDataset(String) * @see MachineApi#createWithDataset(String)
*/ */
@Named("CreateMachine")
@POST @POST
@Path("/my/machines") @Path("/my/machines")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -85,6 +89,7 @@ public interface MachineAsyncApi {
/** /**
* @see MachineApi#createWithDataset(String, CreateMachineOptions) * @see MachineApi#createWithDataset(String, CreateMachineOptions)
*/ */
@Named("CreateMachine")
@POST @POST
@Path("/my/machines") @Path("/my/machines")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -93,6 +98,7 @@ public interface MachineAsyncApi {
/** /**
* @see MachineApi#stop * @see MachineApi#stop
*/ */
@Named("StopMachine")
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_FORM_URLENCODED) @Produces(MediaType.APPLICATION_FORM_URLENCODED)
@ -103,6 +109,7 @@ public interface MachineAsyncApi {
/** /**
* @see MachineApi#start * @see MachineApi#start
*/ */
@Named("StartMachine")
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_FORM_URLENCODED) @Produces(MediaType.APPLICATION_FORM_URLENCODED)
@ -113,6 +120,7 @@ public interface MachineAsyncApi {
/** /**
* @see MachineApi#reboot * @see MachineApi#reboot
*/ */
@Named("RestartMachine")
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_FORM_URLENCODED) @Produces(MediaType.APPLICATION_FORM_URLENCODED)
@ -123,6 +131,7 @@ public interface MachineAsyncApi {
/** /**
* @see MachineApi#resize * @see MachineApi#resize
*/ */
@Named("ResizeMachine")
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_FORM_URLENCODED) @Produces(MediaType.APPLICATION_FORM_URLENCODED)
@ -133,6 +142,7 @@ public interface MachineAsyncApi {
/** /**
* @see MachineApi#delete * @see MachineApi#delete
*/ */
@Named("DeleteMachine")
@DELETE @DELETE
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@Path("/my/machines/{id}") @Path("/my/machines/{id}")

View File

@ -2,6 +2,7 @@ package org.jclouds.joyent.cloudapi.v6_5.features;
import java.util.Set; import java.util.Set;
import javax.inject.Named;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.GET; import javax.ws.rs.GET;
import javax.ws.rs.Path; import javax.ws.rs.Path;
@ -31,6 +32,7 @@ public interface PackageAsyncApi {
/** /**
* @see PackageApi#list * @see PackageApi#list
*/ */
@Named("ListPackages")
@GET @GET
@Path("/my/packages") @Path("/my/packages")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@ -40,6 +42,7 @@ public interface PackageAsyncApi {
/** /**
* @see PackageApi#get * @see PackageApi#get
*/ */
@Named("GetPackage")
@GET @GET
@Path("/my/packages/{name}") @Path("/my/packages/{name}")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)