com.vmware.vcloud.sdk.admin.extensions
Class VMWDatastore

java.lang.Object
  extended by com.vmware.vcloud.sdk.VcloudResource<T>
      extended by com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.extension.DatastoreType>
          extended by com.vmware.vcloud.sdk.admin.extensions.VMWDatastore

public class VMWDatastore
extends VcloudEntity<com.vmware.vcloud.api.rest.schema.extension.DatastoreType>

Helper class for the VMWDatastore Resource in vCloud Admin Extension API.

Since:
API 1.5, SDK 1.5
Author:
Ecosystem Engineering

Method Summary
 void delete()
          Delete the VMWDatastore.
static void delete(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType vmwDatastoreRef)
          Delete the VMWDatastore.
 VMWDatastore disable()
          Disable the Datastore
static VMWDatastore disable(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType vmwDatastoreRef)
          Disable the Datastore
 VMWDatastore enable()
          Enable the Datastore
static VMWDatastore enable(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType vmwDatastoreRef)
          Enable the Datastore
 com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType getDatastoreVimRef()
          Returns the Datastore VIM Object reference.
static VMWDatastore getVMWDatastoreById(VcloudClient client, String vCloudId)
          Get VMWDatastore helper using the vCloud ID
static VMWDatastore getVMWDatastoreByReference(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType reference)
          Returns the VMWDatastore Helper for the given datastore reference
 VMWDatastore updateVMWDatastore(com.vmware.vcloud.api.rest.schema.extension.DatastoreType vmwDatastoreType)
          Update the VMWDatastore
 
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

getVMWDatastoreByReference

public static VMWDatastore getVMWDatastoreByReference(VcloudClient client,
                                                      com.vmware.vcloud.api.rest.schema.ReferenceType reference)
                                               throws VCloudException
Returns the VMWDatastore Helper for the given datastore reference

Parameters:
client -
reference -
Returns:
VMWDatastore
Throws:
VCloudException

getVMWDatastoreById

public static VMWDatastore getVMWDatastoreById(VcloudClient client,
                                               String vCloudId)
                                        throws VCloudException
Get VMWDatastore helper using the vCloud ID

Parameters:
client - VcloudClient
vCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example: "urn:vcloud:media:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
Returns:
VMWDatastore
Throws:
VCloudException

updateVMWDatastore

public VMWDatastore updateVMWDatastore(com.vmware.vcloud.api.rest.schema.extension.DatastoreType vmwDatastoreType)
                                throws VCloudException
Update the VMWDatastore

Parameters:
vmwDatastoreType - DatastoreType
Returns:
VMWDatastore
Throws:
VCloudException

disable

public VMWDatastore disable()
                     throws VCloudException
Disable the Datastore

Returns:
VMWDatastore
Throws:
VCloudException

disable

public static VMWDatastore disable(VcloudClient client,
                                   com.vmware.vcloud.api.rest.schema.ReferenceType vmwDatastoreRef)
                            throws VCloudException
Disable the Datastore

Parameters:
client - VcloudClient
vmwDatastoreRef -
Returns:
VMWDatastore
Throws:
VCloudException

enable

public VMWDatastore enable()
                    throws VCloudException
Enable the Datastore

Returns:
VMWDatastore
Throws:
VCloudException

enable

public static VMWDatastore enable(VcloudClient client,
                                  com.vmware.vcloud.api.rest.schema.ReferenceType vmwDatastoreRef)
                           throws VCloudException
Enable the Datastore

Parameters:
client - VcloudClient
vmwDatastoreRef -
Throws:
VCloudException

delete

public void delete()
            throws VCloudException
Delete the VMWDatastore.

Throws:
VCloudException

delete

public static void delete(VcloudClient client,
                          com.vmware.vcloud.api.rest.schema.ReferenceType vmwDatastoreRef)
                   throws VCloudException
Delete the VMWDatastore.

Parameters:
client -
vmwDatastoreRef -
Throws:
VCloudException

getDatastoreVimRef

public com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType getDatastoreVimRef()
                                                                                throws VCloudException
Returns the Datastore VIM Object reference.

Returns:
VimObjectRefType
Throws:
VCloudException


Copyright © 2016. All Rights Reserved.