|
||||||||||
| 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.CatalogType>
com.vmware.vcloud.sdk.Catalog
public class Catalog
Helper class to access the Catalog Resource in vCloud API.
CatalogType| Method Summary | |
|---|---|
CatalogItem |
addCatalogItem(com.vmware.vcloud.api.rest.schema.CatalogItemType catalogItemType)
Adding a catalogItem |
Task |
capturevApp(com.vmware.vcloud.api.rest.schema.CaptureVAppParamsType captureVApp)
Create a vApp template in this catalog from a vApp. |
Task |
copyCatalogItem(String name,
String description,
com.vmware.vcloud.api.rest.schema.ReferenceType sourceRef)
Copy a catalog item from one catalog to another |
VappTemplate |
createVappTemplate(com.vmware.vcloud.api.rest.schema.UploadVAppTemplateParamsType vappTemplateParams)
Creating and Uploading a vapp template. |
static Catalog |
getCatalogById(VcloudClient client,
String vCloudId)
Get Catalog helper using the vCloud ID |
static Catalog |
getCatalogByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType catalogRef)
Get Catalog helper using the Catalog Ref typically obtained from the Organization. |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getCatalogItemRefByName(String name)
Returns a catalog item reference for the given catalogitem name |
Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getCatalogItemReferences()
Returns a collection of catalogItem references |
HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> |
getCatalogItemRefsByName()
Returns a hashmap of catalog item references by name |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getOrgReference()
Returns the Parent Organization reference |
Task |
moveCatalogItem(String name,
String description,
com.vmware.vcloud.api.rest.schema.ReferenceType sourceRef)
Move a catalog item from one catalog to another |
Task |
sync()
Force sync the catalog to the remote subscribed catalog. |
VappTemplate |
uploadVappTemplate(String vAppTemplateName,
String vAppTemplateDesc,
String localOvfFileLocation,
Boolean manifestRequired,
com.vmware.vcloud.api.rest.schema.ReferenceType vdcStorageRef)
Uploading the ovf package as a vapp template to the catalog. |
| 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 Catalog getCatalogByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType catalogRef)
throws VCloudException
client - vCloud API client VcloudClientcatalogRef - ReferenceType
VCloudExceptionOrganization.getCatalogRefs()
public static Catalog getCatalogById(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
Catalog
VCloudException
public CatalogItem addCatalogItem(com.vmware.vcloud.api.rest.schema.CatalogItemType catalogItemType)
throws VCloudException
catalogItemType - CatalogItemType
VCloudExceptionpublic HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> getCatalogItemRefsByName()
public com.vmware.vcloud.api.rest.schema.ReferenceType getCatalogItemRefByName(String name)
name - String
public Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> getCatalogItemReferences()
public com.vmware.vcloud.api.rest.schema.ReferenceType getOrgReference()
throws VCloudException
ReferenceType
VCloudException
public VappTemplate uploadVappTemplate(String vAppTemplateName,
String vAppTemplateDesc,
String localOvfFileLocation,
Boolean manifestRequired,
com.vmware.vcloud.api.rest.schema.ReferenceType vdcStorageRef)
throws VCloudException,
DuplicateNameException,
ResourceNotAddedException,
TimeoutException
vAppTemplateName - - name of the vapptemplatevAppTemplateDesc - - description of the vapptempaltelocalOvfFileLocation - - local media file location.manifestRequired - - does the vapptemplate contains a manifest file which needs to be uploaded.vdcStorageRef - - vdc's storage profile reference. If null, defaults to the vdc's default storage
profile. For vCD 1.5 this parameter should be set to null.
VappTemplate
VCloudException
DuplicateNameException
MissingPropertyException
ResourceNotAddedException
TimeoutException
public VappTemplate createVappTemplate(com.vmware.vcloud.api.rest.schema.UploadVAppTemplateParamsType vappTemplateParams)
throws VCloudException
vappTemplateParams - UploadVAppTemplateParamsType
VCloudExceptionVappTemplate.uploadOVFFile(java.io.InputStream, long),
VappTemplate.uploadFile(String, java.io.InputStream, long),
VappTemplate.uploadFile(String, java.io.InputStream, long, long),
VappTemplate.monitorUpload(),
VappTemplate.getUploadFileNames()
public Task capturevApp(com.vmware.vcloud.api.rest.schema.CaptureVAppParamsType captureVApp)
throws VCloudException
captureVApp - CaptureVAppParamsType
Task
VCloudException
public Task sync()
throws VCloudException
Task
VCloudException
public Task copyCatalogItem(String name,
String description,
com.vmware.vcloud.api.rest.schema.ReferenceType sourceRef)
throws VCloudException
name - Stringdescription - StringsourceRef - ReferenceType
VCloudException
public Task moveCatalogItem(String name,
String description,
com.vmware.vcloud.api.rest.schema.ReferenceType sourceRef)
throws VCloudException
name - Stringdescription - StringsourceRef - ReferenceType
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||