@Path(value="/account/keys") @Consumes(value="application/json") public interface KeyApi extends Closeable
KeyApi
Modifier and Type | Interface and Description |
---|---|
static class |
KeyApi.ParseKeys |
Modifier and Type | Method and Description |
---|---|
Key |
create(String name,
String key) |
void |
delete(int id) |
void |
delete(String fingerprint) |
Key |
get(int id) |
Key |
get(String fingerprint) |
PagedIterable<Key> |
list() |
IterableWithMarker<Key> |
list(ListOptions options) |
Key |
update(int id,
String name) |
Key |
update(String fingerprint,
String name) |
@Named(value="key:list") @GET PagedIterable<Key> list()
@Named(value="key:list") @GET IterableWithMarker<Key> list(ListOptions options)
@Named(value="key:create") @POST @Produces(value="application/json") Key create(String name, String key)
@Named(value="key:get") @GET @Path(value="/{id}") @Nullable Key get(@PathParam(value="id") int id)
@Named(value="key:get") @GET @Path(value="/{fingerprint}") @Nullable Key get(@PathParam(value="fingerprint") String fingerprint)
@Named(value="key:update") @PUT @Produces(value="application/json") @Path(value="/{id}") Key update(@PathParam(value="id") int id, String name)
@Named(value="key:update") @PUT @Produces(value="application/json") @Path(value="/{fingerprint}") Key update(@PathParam(value="fingerprint") String fingerprint, String name)
@Named(value="key:delete") @DELETE @Path(value="/{id}") void delete(@PathParam(value="id") int id)
@Named(value="key:delete") @DELETE @Path(value="/{fingerprint}") void delete(@PathParam(value="fingerprint") String fingerprint)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.