Interface MachineTypeApi
-
@Path("/machineTypes") @Consumes("application/json") public interface MachineTypeApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MachineTypeApi.MachineTypePages
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MachineType
get(String machineType)
Returns an machine type by name or null if not found.Iterator<ListPage<MachineType>>
list()
Iterator<ListPage<MachineType>>
list(ListOptions options)
ListPage<MachineType>
listPage(String pageToken, ListOptions listOptions)
Retrieves the list of machine type resources available to the specified project.
-
-
-
Method Detail
-
get
@Named("MachineTypes:get") @GET @Path("/{machineType}") MachineType get(@PathParam("machineType") String machineType)
Returns an machine type by name or null if not found.
-
listPage
@Named("MachineTypes:list") @GET ListPage<MachineType> listPage(@Nullable @QueryParam("pageToken") String pageToken, ListOptions listOptions)
Retrieves the list of machine type 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
@Named("MachineTypes:list") @GET Iterator<ListPage<MachineType>> list()
- See Also:
listPage(String, ListOptions)
-
list
@Named("MachineTypes:list") @GET Iterator<ListPage<MachineType>> list(ListOptions options)
- See Also:
listPage(String, ListOptions)
-
-