Interface RouteApi
@Path("/routes")
@Consumes("application/json")
public interface RouteApi
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptioncreateInNetwork(String name, URI network, RouteOptions routeOptions) Creates a route resource in the specified project using the data included in the request.Deletes a route by name and returns the operation in progress, or null if not found.Returns a route type by name or null if not found.list()list(ListOptions options) listPage(String pageToken, ListOptions listOptions) Retrieves the list of route resources available to the specified project.
- 
Method Details- 
getReturns a route type by name or null if not found.
- 
delete@Named("Routes:delete") @DELETE @Path("/{route}") @Nullable Operation delete(@PathParam("route") String routeName) Deletes a route by name and returns the operation in progress, or null if not found.
- 
createInNetwork@Named("Routes:insert") @POST @Produces("application/json") Operation createInNetwork(String name, URI network, RouteOptions routeOptions) Creates a route resource in the specified project using the data included in the request.- Parameters:
- name- the name of the route to be inserted.
- network- the network to which to add the route
- routeOptions- the options of the route to add
- Returns:
- an Operation resource. To check on the status of an operation, poll the Operations resource returned to you, and look for the status field.
 
- 
listPage@Named("Routes:list") @GET ListPage<Route> listPage(@Nullable @QueryParam("pageToken") String pageToken, ListOptions listOptions) Retrieves the list of route resources available to the specified project. By default the list as a maximum size of 100, if no options are provided or ListOptions#getMaxResults() has not been set.- Parameters:
- pageToken- marks the beginning of the next list page
- listOptions- listing options
- Returns:
- a page of the list
 
- 
list- See Also:
 
- 
list- See Also:
 
 
-