|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.VcloudResource<T>
com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.DiskType>
com.vmware.vcloud.sdk.Disk
public class Disk
Helper class to access the disk Resource in vCloud API.
DiskType| Method Summary | |
|---|---|
void |
changeOwner(com.vmware.vcloud.api.rest.schema.ReferenceType userReference)
Change Disk owner. |
static void |
changeOwner(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType diskRef,
com.vmware.vcloud.api.rest.schema.ReferenceType userReference)
Change Disk owner. |
Task |
delete()
Delete Disk . |
static Task |
delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType diskRef)
Delete Disk . |
List<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getAttachedVms()
Returns the vm references to which this disk is attached to. |
BusType |
getBus()
Returns the bus type. |
BusSubType |
getBusSub()
Returns the bus sub type. |
static Disk |
getDiskById(VcloudClient client,
String vCloudId)
Get Disk helper using the vCloud ID |
static Disk |
getDiskByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType diskRef)
Get Disk for the given Disk reference |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getOwner()
Returns the owner of the Disk. |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getVdcReference()
Returns the Parent Vdc ReferenceType. |
Task |
updateDisk(String name,
String description,
com.vmware.vcloud.api.rest.schema.ReferenceType storageProfileRef)
Updates name, description and storage profile of Disk. |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudEntity |
|---|
getMetadata, getReference, getTasks |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudResource |
|---|
getResource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Disk getDiskByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType diskRef)
throws VCloudException
client - diskRef -
Disk
VCloudException
public static Disk getDiskById(VcloudClient client,
String vCloudId)
throws VCloudException
client - VcloudClientvCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example:
"urn:vcloud:disk:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
Disk
VCloudException
public Task updateDisk(String name,
String description,
com.vmware.vcloud.api.rest.schema.ReferenceType storageProfileRef)
throws VCloudException
name - description - storageProfileRef -
Task
VCloudException
public Task delete()
throws VCloudException
Task
VCloudException
public static Task delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType diskRef)
throws VCloudException
client - vCloud Client VcloudClientdiskRef - Disk Ref
Task
VCloudException
public com.vmware.vcloud.api.rest.schema.ReferenceType getVdcReference()
throws VCloudException
ReferenceType
VCloudException
public com.vmware.vcloud.api.rest.schema.ReferenceType getOwner()
throws VCloudException
ReferenceType
VCloudExceptionpublic BusType getBus()
BusTypepublic BusSubType getBusSub()
BusSubType
public static void changeOwner(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType diskRef,
com.vmware.vcloud.api.rest.schema.ReferenceType userReference)
throws VCloudException
client - - VcloudClientdiskRef - - ReferenceType Disk referenceuserReference - - ReferenceType
VCloudException
public void changeOwner(com.vmware.vcloud.api.rest.schema.ReferenceType userReference)
throws VCloudException
userReference - ReferenceType
VCloudException
public List<com.vmware.vcloud.api.rest.schema.ReferenceType> getAttachedVms()
throws VCloudException
List
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||