Interface SubnetworkApi
@Path("/subnetworks")
@Consumes("application/json")
public interface SubnetworkApi
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncreateInNetwork
(SubnetworkCreationOptions newSubnetwork) Creates a persistent network resource in the specified project with the specified range and specified gateway.Deletes a network by name and returns the operation in progress, or null if not found.Returns a network by name or null if not found.list()
list
(ListOptions options) listPage
(String pageToken, ListOptions listOptions) Retrieves the list of network resources available to the specified project.
-
Method Details
-
get
@Named("Subnetworks:get") @GET @Path("/{subnetwork}") Subnetwork get(@PathParam("subnetwork") String subnetworkName) Returns a network by name or null if not found. -
createInNetwork
@Named("Subnetworks:insert") @POST @Produces("application/json") Operation createInNetwork(SubnetworkCreationOptions newSubnetwork) Creates a persistent network resource in the specified project with the specified range and specified gateway.- Parameters:
newSubnetwork
- definition of the subnetwork.- 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.
-
delete
@Named("Subnetworks:delete") @DELETE @Path("/{subnetwork}") Operation delete(@PathParam("subnetwork") String subnetworkName) Deletes a network by name and returns the operation in progress, or null if not found. -
listPage
@Named("Subnetworks:list") @GET ListPage<Subnetwork> listPage(@Nullable @QueryParam("pageToken") String pageToken, ListOptions listOptions) Retrieves the list of network 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 pagelistOptions
- listing options- Returns:
- a page of the list
-
list
- See Also:
-
list
- See Also:
-