org.jclouds.googlecomputeengine.features
Interface MachineTypeApi


public interface MachineTypeApi

Provides access to MachineTypes via their REST API.

Author:
David Alves
See Also:

Method Summary
 MachineType getInZone(String zone, String machineTypeName)
          Returns the specified machine type resource
 ListPage<MachineType> listAtMarkerInZone(String zone, String marker)
           
 ListPage<MachineType> listAtMarkerInZone(String zone, String marker, ListOptions listOptions)
          Retrieves the list of machine type resources available to the specified project.
 ListPage<MachineType> listFirstPageInZone(String zone)
           
 org.jclouds.collect.PagedIterable<MachineType> listInZone(String zone)
           
 org.jclouds.collect.PagedIterable<MachineType> listInZone(String zone, ListOptions listOptions)
          A paged version of MachineTypeApi#listInZone(String)
 

Method Detail

getInZone

@Named(value="MachineTypes:get")
MachineType getInZone(String zone,
                            String machineTypeName)
Returns the specified machine type resource

Parameters:
zone - the name of the zone the machine type is in
machineTypeName - name of the machine type resource to return.
Returns:
If successful, this method returns a MachineType resource

listFirstPageInZone

@Named(value="MachineTypes:list")
ListPage<MachineType> listFirstPageInZone(String zone)
See Also:
listAtMarkerInZone(String, String, org.jclouds.googlecomputeengine.options.ListOptions)

listAtMarkerInZone

@Named(value="MachineTypes:list")
ListPage<MachineType> listAtMarkerInZone(String zone,
                                               @Nullable
                                               String marker)
See Also:
listAtMarkerInZone(String, String, org.jclouds.googlecomputeengine.options.ListOptions)

listAtMarkerInZone

@Named(value="MachineTypes:list")
ListPage<MachineType> listAtMarkerInZone(String zone,
                                               @Nullable
                                               String marker,
                                               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:
zone - The name of the zone to list in.
marker - marks the beginning of the next list page
listOptions - listing options
Returns:
a page of the list
See Also:
ListOptions, ListPage

listInZone

@Named(value="MachineTypes:list")
org.jclouds.collect.PagedIterable<MachineType> listInZone(String zone)
See Also:
listInZone(String, org.jclouds.googlecomputeengine.options.ListOptions)

listInZone

@Named(value="MachineTypes:list")
org.jclouds.collect.PagedIterable<MachineType> listInZone(String zone,
                                                                ListOptions listOptions)
A paged version of MachineTypeApi#listInZone(String)

Parameters:
zone - the zone to list in
Returns:
a Paged, Fluent Iterable that is able to fetch additional pages when required
See Also:
PagedIterable, listAtMarkerInZone(String, String, org.jclouds.googlecomputeengine.options.ListOptions)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.