@Path(value="/networks")
@Consumes(value="application/json")
public interface NetworkApi
| Modifier and Type | Interface and Description |
|---|---|
static class |
NetworkApi.NetworkPages |
| Modifier and Type | Method and Description |
|---|---|
Operation |
create(NetworkCreationOptions options)
Creates a persistent network resource in the specified project with the specified options.
|
Operation |
createCustom(String networkName)
Creates a custom persistent network resource in the specified project with the specified range.
|
Operation |
createLegacy(String networkName,
String IPv4Range)
Creates a legacy persistent network resource in the specified project with the specified range.
|
Operation |
delete(String networkName)
Deletes a network by name and returns the operation in progress, or null if not found.
|
Network |
get(String networkName)
Returns a network by name or null if not found.
|
Iterator<ListPage<Network>> |
list() |
Iterator<ListPage<Network>> |
list(ListOptions options) |
ListPage<Network> |
listPage(String pageToken,
ListOptions listOptions)
Retrieves the list of network resources available to the specified project.
|
@Named(value="Networks:get")
@GET
@Path(value="/{network}")
Network get(@PathParam(value="network")
String networkName)
@Named(value="Networks:insert") @POST @Produces(value="application/json") Operation createLegacy(String networkName, String IPv4Range)
networkName - the network nameIPv4Range - the range of the network to be inserted.@Named(value="Networks:insert") @POST @Produces(value="application/json") Operation createCustom(String networkName)
networkName - the network name@Named(value="Networks:insert") @POST @Produces(value="application/json") Operation create(NetworkCreationOptions options)
options - the network options.@Named(value="Networks:delete")
@DELETE
@Path(value="/{network}")
Operation delete(@PathParam(value="network")
String networkName)
@Named(value="Networks:list") @GET ListPage<Network> listPage(@Nullable@QueryParam(value="pageToken") String pageToken, ListOptions listOptions)
pageToken - marks the beginning of the next list pagelistOptions - listing options@Named(value="Networks:list") @GET Iterator<ListPage<Network>> list()
listPage(String, ListOptions)@Named(value="Networks:list") @GET Iterator<ListPage<Network>> list(ListOptions options)
listPage(String, ListOptions)Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.