Class

VMware_VCloud_SDK_Factory

class VMware_VCloud_SDK_Factory extends VMware_VCloud_SDK_Abstract

Methods

string getEntityId()

Get vCloud ID of the vCloud resource entity from its data object.

from VMware_VCloud_SDK_Abstract
static mixed create(VMware_VCloud_SDK_Service $svc, mixed $obj)

Static method for creating a VMware vCloud SDK object.

Details

public string getEntityId()

Get vCloud ID of the vCloud resource entity from its data object.

Return Value

string

at line 176
static public mixed create(VMware_VCloud_SDK_Service $svc, mixed $obj)

Static method for creating a VMware vCloud SDK object.

The object type is constructed based on the type of the input vCloud data object or a URL string, which represents an VMware vCloud resource entity or the entry point of these resource entities, from where to get references or links of the resource entities.

Table below lists how to get a reference type for a VMware vCloud entity. To be simple, here omits the package name (VMwareVCloudSDK) from the class name. Each line is in the following format:

[SDK Object to creat] <= [SDK Object to invoke the get reference method] ->[Method to get ReferenceType object]

  • Org <= Service->getOrgRefs()

  • Vdc <= Org->getVdcRefs()
  • Catalog <= Org->getCatalogRefs()
  • Task <= Org->getTasks()
  • CatalogItem <= Catalog->getCatalogItemRefs()
  • Media <= Vdc->getMediaRefs()
  • Network <= Vdc->getAvailableNetworkRefs()
  • VApp <= Vdc->getVAppRefs() or VApp->getContainedVAppRefs()
  • VAppTemplate <= Vdc->getVAppTemplateRefs()
  • Vm <= VApp->getContainedVmRefs() or VAppTemplate->getContainedVms()
  • Disk <= Vdc->getDiskRefs()
  • VdcStorageProfile <= Vdc->getVdcStorageProfileRefs()

  • AdminOrg <= Admin->getAdminOrgRefs()
  • ProviderVdc <= Admin->getProviderVdcRefs()
  • Role <= Admin->getRoleRefs()
  • AdminVdc <= AdminOrg->getAdminVdcRefs()
  • AdminCatalog <= AdminOrg->getAdminCatalogRefs()
  • AdminNetwork <= AdminOrg->getAdminNetworkRefs()
  • Group <= AdminOrg->getGroupRefs()
  • User <= AdminOrg->getUserRefs()
  • Right <= Admin->getRightRefs()
  • AdminVdcStorageProfile <= AdminVdc->getAdminVdcStorageProfileRefs()
  • ProviderVdcStorageProfile <= AdminVdcStorageProfile->getProviderVdcStorageProfileRefs()

  • ExtensionDatastore <= Extension->getDatastoreRefs()
  • ExtensionHost <= Extension->getHostRefs()
  • ExtensionVMWExternalNetwork <= Extension->getVMWExternalNetworkRefs()
  • ExtensionVMWNetworkPool <= Extension->getVMWNetworkPoolRefs()
  • ExtensionVMWProviderVdc <= Extension->getVMWProviderVdcRefs()
  • ExtensionVimServer <= Extension->getVimServerRefs()
  • ExtensionBlockingTask <= Extension->getBlockingTaskRefs()
  • ExtensionStrandedItem <= Extension->getStrandedItems()
  • ExtensionVMWProviderVdcStorageProfile <= ExtensionVMWProviderVdc->getProviderVdcStorageProfileRefs()
  • ExtensionService <= Extension->getServiceRef()
  • ExtensionServiceLink <= Extension->getServiceLinkRef()
  • ExtensionAPIDefinition <= Extension->getAPIDefinitionRef()
  • ExtensionResourceClass <= Extension->getResourceClassRef()
  • ExtensionResourceClassAction <= Extension->getResourceClassActionRef()
  • ExtensionAclRule <= Extension->getAclRuleRef()
  • Extension_serviceResources <= Extension->getserviceResourcesRef()

Parameters

VMware_VCloud_SDK_Service $svc
mixed $obj A data object represents or references a vCloud entity or the URL of a vCloud entity.

Return Value

mixed A VMware vCloud SDK object

Exceptions

VMware_VCloud_SDK_Exception