|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DiskApi
Provides access to Disks via their REST API.
| Method Summary | |
|---|---|
Operation |
createFromImageInZone(String sourceImage,
String diskName,
String zone)
Creates a persistent disk resource from the specified image, in the specified project, with the default disk size. |
Operation |
createFromImageWithSizeInZone(String sourceImage,
String diskName,
int sizeGb,
String zone)
Creates a persistent disk resource from the specified image, in the specified project, specifying the size of the disk. |
Operation |
createInZone(String diskName,
int sizeGb,
String zone)
Creates a persistent disk resource in the specified project specifying the size of the disk. |
Operation |
createSnapshotInZone(String zone,
String diskName,
String snapshotName)
Create a snapshot of a given disk in a zone. |
Operation |
deleteInZone(String zone,
String diskName)
Deletes the specified persistent disk resource. |
Disk |
getInZone(String zone,
String diskName)
Returns the specified persistent disk resource. |
ListPage<Disk> |
listAtMarkerInZone(String zone,
String marker)
|
ListPage<Disk> |
listAtMarkerInZone(String zone,
String marker,
ListOptions listOptions)
Retrieves the listPage of persistent disk resources contained within the specified project and zone. |
ListPage<Disk> |
listFirstPageInZone(String zone)
|
org.jclouds.collect.PagedIterable<Disk> |
listInZone(String zone)
A paged version of DiskApi#listPageInZone(String) |
org.jclouds.collect.PagedIterable<Disk> |
listInZone(String zone,
ListOptions options)
|
| Method Detail |
|---|
@Named(value="Disks:get")
@Nullable
Disk getInZone(String zone,
String diskName)
zone - Name of the zone the disk is in.diskName - name of the persistent disk resource to return.
@Named(value="Disks:insert")
Operation createInZone(String diskName,
int sizeGb,
String zone)
diskName - the name of disk.sizeGb - the size of the diskzone - the name of the zone where the disk is to be created.
@Named(value="Disks:insert")
Operation createFromImageWithSizeInZone(String sourceImage,
String diskName,
int sizeGb,
String zone)
sourceImage - fully qualified URL for the image to be copied.diskName - the name of disk.sizeGb - the size of the diskzone - the name of the zone where the disk is to be created.
@Named(value="Disks:insert")
Operation createFromImageInZone(String sourceImage,
String diskName,
String zone)
sourceImage - fully qualified URL for the image to be copied.diskName - the name of disk.zone - the name of the zone where the disk is to be created.
@Named(value="Disks:delete")
@Nullable
Operation deleteInZone(String zone,
String diskName)
zone - the zone the disk is in.diskName - name of the persistent disk resource to delete.
@Named(value="Disks:list") ListPage<Disk> listFirstPageInZone(String zone)
listAtMarkerInZone(String, String, org.jclouds.googlecomputeengine.options.ListOptions)
@Named(value="Disks:list")
ListPage<Disk> listAtMarkerInZone(String zone,
@Nullable
String marker)
listAtMarkerInZone(String, String, org.jclouds.googlecomputeengine.options.ListOptions)
@Named(value="Disks:list")
ListPage<Disk> listAtMarkerInZone(String zone,
@Nullable
String marker,
ListOptions listOptions)
zone - the zone to search inmarker - marks the beginning of the next list pagelistOptions - listing options
ListOptions,
ListPage@Named(value="Disks:list") org.jclouds.collect.PagedIterable<Disk> listInZone(String zone)
zone - the zone to list in
PagedIterable,
listAtMarkerInZone(String, String, org.jclouds.googlecomputeengine.options.ListOptions)
@Named(value="Disks:list")
org.jclouds.collect.PagedIterable<Disk> listInZone(String zone,
ListOptions options)
@Named(value="Disks:createSnapshot")
@Nullable
Operation createSnapshotInZone(String zone,
String diskName,
String snapshotName)
zone - the zone the disk is in.diskName - the name of the disk.snapshotName - the name for the snapshot to be craeted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||