@Consumes(value="application/json")
public interface DeviceApi
| Modifier and Type | Interface and Description |
|---|---|
static class |
DeviceApi.ParseDevices |
| Modifier and Type | Method and Description |
|---|---|
Device |
create(Device.CreateDevice device) |
void |
delete(String id) |
Device |
get(String id) |
PagedIterable<Device> |
list() |
IterableWithMarker<Device> |
list(ListOptions options) |
void |
powerOff(String id) |
void |
powerOn(String id) |
void |
reboot(String id) |
@Named(value="device:list")
@GET
@Path(value="/projects/{projectId}/devices")
PagedIterable<Device> list()
@Named(value="device:list")
@GET
@Path(value="/projects/{projectId}/devices")
IterableWithMarker<Device> list(ListOptions options)
@Named(value="device:create")
@POST
@Path(value="/projects/{projectId}/devices")
@Produces(value="application/json")
Device create(Device.CreateDevice device)
@Named(value="device:get")
@GET
@Path(value="/devices/{id}")
@Nullable
Device get(@PathParam(value="id")
String id)
@Named(value="device:delete")
@DELETE
@Path(value="/devices/{id}")
void delete(@PathParam(value="id")
String id)
@Named(value="device:powerOff")
@POST
@Produces(value="application/json")
@Path(value="/devices/{id}/actions")
void powerOff(@PathParam(value="id")
String id)
@Named(value="device:powerOn")
@POST
@Produces(value="application/json")
@Path(value="/devices/{id}/actions")
void powerOn(@PathParam(value="id")
String id)
@Named(value="device:reboot")
@POST
@Produces(value="application/json")
@Path(value="/devices/{id}/actions")
void reboot(@PathParam(value="id")
String id)
Copyright © 2009-2021 The Apache Software Foundation. All Rights Reserved.