@Path(value="/addresses")
@Consumes(value="application/json")
public interface AddressApi
Modifier and Type | Interface and Description |
---|---|
static class |
AddressApi.AddressPages |
Modifier and Type | Method and Description |
---|---|
Operation |
create(AddressCreationOptions options) |
Operation |
create(String address)
Creates an address resource in the specified project specifying the size of the address.
|
Operation |
delete(String address)
Deletes an address by name and returns the operation in progress, or null if not found.
|
Address |
get(String address)
Returns an address by name or null if not found.
|
Iterator<ListPage<Address>> |
list() |
Iterator<ListPage<Address>> |
list(ListOptions options) |
ListPage<Address> |
listPage(String pageToken,
ListOptions listOptions)
Retrieves the list of address resources available to the specified project.
|
@Named(value="Addresses:get") @GET @Path(value="/{address}") @Nullable Address get(@PathParam(value="address") String address)
@Named(value="Addresses:insert") @POST @Produces(value="application/json") Operation create(String address)
address
- the name of address.@Named(value="Addresses:insert") @POST @Produces(value="application/json") Operation create(AddressCreationOptions options)
create(String)
@Named(value="Addresses:delete") @DELETE @Path(value="/{address}") @Nullable Operation delete(@PathParam(value="address") String address)
@Named(value="Addresses:list") @GET ListPage<Address> listPage(@Nullable@QueryParam(value="pageToken") String pageToken, ListOptions listOptions)
pageToken
- marks the beginning of the next list pagelistOptions
- listing options@Named(value="Addresses:list") @GET Iterator<ListPage<Address>> list()
listPage(String, ListOptions)
@Named(value="Addresses:list") @GET Iterator<ListPage<Address>> list(ListOptions options)
listPage(String, ListOptions)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.