|
||||||||||
| 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.CatalogItemType>
com.vmware.vcloud.sdk.CatalogItem
public class CatalogItem
Helper class to access the CatalogItem Resource in vCloud API.
CatalogItemType| Constructor Summary | |
|---|---|
CatalogItem(VcloudClient client,
com.vmware.vcloud.api.rest.schema.CatalogItemType catalogItemType_v1_5)
Constructor to create a CatalogItem |
|
| Method Summary | |
|---|---|
void |
delete()
Delete CatalogItem . |
static void |
delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType catalogItemRef)
Delete CatalogItem . |
static CatalogItem |
getCatalogItemById(VcloudClient client,
String vCloudId)
Get CatalogItem helper using the vCloud ID |
static CatalogItem |
getCatalogItemByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType catalogItemRef)
Get CatalogItem for the given Catalog Item ReferenceType. |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getCatalogReference()
Returns the Catalog ReferenceType for this catalog item |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getEntityReference()
Returns the entity contained in the catalog item. |
Task |
sync()
Sync catalog item |
CatalogItem |
updateCatalogItem(com.vmware.vcloud.api.rest.schema.CatalogItemType catalogItemType)
Updates CatalogItem |
| 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 |
| Constructor Detail |
|---|
public CatalogItem(VcloudClient client,
com.vmware.vcloud.api.rest.schema.CatalogItemType catalogItemType_v1_5)
client - VcloudClientcatalogItemType_v1_5 - CatalogItemType| Method Detail |
|---|
public com.vmware.vcloud.api.rest.schema.ReferenceType getCatalogReference()
throws VCloudException
ReferenceType
VCloudException
public com.vmware.vcloud.api.rest.schema.ReferenceType getEntityReference()
throws VCloudException
ReferenceType
VCloudException
public static CatalogItem getCatalogItemByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType catalogItemRef)
throws VCloudException
client - vCloud API client VcloudClientcatalogItemRef - ReferenceType ReferenceType
CatalogItem
VCloudExceptionCatalog.getCatalogItemRefByName(String),
Catalog.getCatalogItemRefsByName(),
Catalog.getCatalogItemReferences()
public static CatalogItem getCatalogItemById(VcloudClient client,
String vCloudId)
throws VCloudException
client - VcloudClientvCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example:
"urn:vcloud:media:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
CatalogItem
VCloudException
public CatalogItem updateCatalogItem(com.vmware.vcloud.api.rest.schema.CatalogItemType catalogItemType)
throws VCloudException
catalogItemType - CatalogItemType
CatalogItem
VCloudException
public void delete()
throws VCloudException
VCloudException
public static void delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType catalogItemRef)
throws VCloudException
client - vCloud Client VcloudClientcatalogItemRef - CatalogItem Ref
VCloudException
public Task sync()
throws VCloudException
Task
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||