| Modifier and Type | Method and Description |
|---|---|
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) |
@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> listAtMarkerInZone(String zone, @Nullable String marker)
@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 optionsListOptions,
ListPage@Named(value="Disks:list") org.jclouds.collect.PagedIterable<Disk> listInZone(String zone)
zone - the zone to list inPagedIterable,
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.Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.