|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.HardwareItem
com.vmware.vcloud.sdk.VirtualDisk
public class VirtualDisk
Helper class to access the Virtual Disk Resource in vCloud API. The VirtualDisk can be a disk or its controller.
RASDType| Constructor Summary | |
|---|---|
VirtualDisk(BigInteger diskSize,
BusType busType,
BusSubType busSubType)
Creating a Virtual Disk. |
|
VirtualDisk(BigInteger diskSize,
BusType busType,
BusSubType busSubType,
Integer busNumber,
Integer unitNumber)
Creates a disk of the specified type and attaches to the specified the bus and unit number. |
|
VirtualDisk(BigInteger diskSize,
BusType busType,
BusSubType busSubType,
Integer busNumber,
Integer unitNumber,
com.vmware.vcloud.api.rest.schema.ReferenceType storageProfileRef)
Creates a disk of the specified type and attaches to the specified the bus and unit number. |
|
VirtualDisk(BigInteger diskSize,
BusType busType,
BusSubType busSubType,
com.vmware.vcloud.api.rest.schema.ReferenceType storageProfileRef)
Creates a disk of the specified type and attaches to the specified the bus and unit number. |
|
VirtualDisk(com.vmware.vcloud.api.rest.schema.ovf.RASDType virtualDiskItem)
Constructor to create a virtualDisk and set Storage Profile |
|
| Method Summary | |
|---|---|
String |
getHardDiskBusType()
Get the Bus Type of the HardDisk |
BigInteger |
getHardDiskSize()
Get the size of the HardDisk |
Boolean |
isHardDisk()
The VirualDisk can contain a HardDisk/HardDiskController. |
void |
overrideVmStorageProfile(boolean value)
Override the Default Vm Storage Profile with the specified Storage Profile |
void |
updateHardDiskSize(BigInteger hardDiskSize)
Update the size of the HardDisk. |
void |
updateStorageProfile(com.vmware.vcloud.api.rest.schema.ReferenceType storageProfileRef)
Update the storage Profile of the Disk. |
| Methods inherited from class com.vmware.vcloud.sdk.HardwareItem |
|---|
getItemResource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VirtualDisk(BigInteger diskSize,
BusType busType,
BusSubType busSubType)
diskSize - - disk size in mb.busType - - ide or scsi bus type.busSubType - - for ide bus type the bussubtype is ignored.VM.updateDisks(List)
public VirtualDisk(BigInteger diskSize,
BusType busType,
BusSubType busSubType,
Integer busNumber,
Integer unitNumber)
diskSize - - disk size in mb.busType - - ide/scsi bus type.busSubType - - for ide bus type the bussubtype is ignored.busNumber - - for ide controller it can be 0 or 1. for scsi controller it can be 0 - 3.unitNumber - - for ide it can be 0 - 3. for scsi it can be 0-6,8-15.VM.updateDisks(List)
public VirtualDisk(BigInteger diskSize,
BusType busType,
BusSubType busSubType,
com.vmware.vcloud.api.rest.schema.ReferenceType storageProfileRef)
diskSize - - disk size in mb.busType - - ide/scsi bus type.busSubType - - for ide bus type the bussubtype is ignored.storageProfileRef - - reference for the storage profileVM.updateDisks(List)
public VirtualDisk(BigInteger diskSize,
BusType busType,
BusSubType busSubType,
Integer busNumber,
Integer unitNumber,
com.vmware.vcloud.api.rest.schema.ReferenceType storageProfileRef)
diskSize - - disk size in mb.busType - - ide/scsi bus type.busSubType - - for ide bus type the bussubtype is ignored.storageProfileRef - - reference for the storage profilebusNumber - - for ide controller it can be 0 or 1. for scsi controller it can be 0 - 3.unitNumber - - for ide it can be 0 - 3. for scsi it can be 0-6,8-15.VM.updateDisks(List)public VirtualDisk(com.vmware.vcloud.api.rest.schema.ovf.RASDType virtualDiskItem)
virtualDiskItem - VirtualDisk(BigInteger, BusType, BusSubType),
VirtualDisk(BigInteger, BusType, BusSubType, Integer, Integer)| Method Detail |
|---|
public BigInteger getHardDiskSize()
throws VCloudException
VCloudException
public void updateHardDiskSize(BigInteger hardDiskSize)
throws VCloudException
VM.updateDisks(List)
hardDiskSize -
VCloudException
public void overrideVmStorageProfile(boolean value)
throws VCloudException
value -
VCloudException
public void updateStorageProfile(com.vmware.vcloud.api.rest.schema.ReferenceType storageProfileRef)
throws VCloudException
storageProfileRef -
VCloudException
public String getHardDiskBusType()
throws VCloudException
VCloudExceptionpublic Boolean isHardDisk()
Boolean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||