|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.VcloudResource<com.vmware.vcloud.api.rest.schema.MetadataType>
com.vmware.vcloud.sdk.Metadata
public class Metadata
Helper class for the Metadata resource in vCloud API. The metadata tagging is available only for some of the entities in the User and Admin API - Organization, Vdc, Catalog, CatalogItem, Media, VappTemplate, VappTemplate VM, Vapp, Vapp VM, OrgNetwork, AdminOrganization, AdminVdc, AdminCatalog, AdminOrgNetwork, External Network, ProviderVdc etc.
MetadataType| Constructor Summary | |
|---|---|
Metadata(VcloudClient client,
com.vmware.vcloud.api.rest.schema.MetadataType metadataType)
Default access constructor for creating a Metadata helper class |
|
| Method Summary | |
|---|---|
Task |
deleteMetadataEntry(String key)
Deletes a specific metadata entry. |
static Task |
deleteMetadataEntry(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType entityRef,
String key)
Deletes a specific metadata entry. |
Task |
deleteTypedMetadataEntry(String key)
Deletes a specific typed metadata entry. |
Task |
deleteTypedMetadataEntry(String key,
MetadataDomain domain)
Deletes a specific typed metadata entry. |
HashMap<String,String> |
getMetadataEntries()
Retrieves a map of metadata entries for this vcloud resource. |
static HashMap<String,String> |
getMetadataEntries(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType entityRef)
Retrieves a map of metadata entries for this vcloud resource. |
String |
getMetadataEntry(String key)
Returns a specific metadata entry. |
static String |
getMetadataEntry(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType entityRef,
String key)
Returns a specific metadata entry. |
List<com.vmware.vcloud.api.rest.schema.MetadataEntryType> |
getTypedMetadataEntries()
Returns a map of specific typed metadata entries. |
com.vmware.vcloud.api.rest.schema.MetadataEntryType |
getTypedMetadataEntry(String key)
Returns the specific typed metadata entry for the specified key. |
com.vmware.vcloud.api.rest.schema.MetadataEntryType |
getTypedMetadataEntry(String key,
MetadataDomain domain)
Returns the specific typed metadata entry for the specified key and domain. |
Task |
updateMetadataEntries(HashMap<String,String> metadataEntries)
Updates the provided map of metadata entries for this vcloud resource. |
Task |
updateMetadataEntry(String key,
String value)
Updates a specific metadata entry. |
static Task |
updateMetadataEntry(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType entityRef,
String key,
String value)
Updates a specific metadata entry. |
Task |
updateTypedMetadataEntries(List<com.vmware.vcloud.api.rest.schema.MetadataEntryType> metadataEntries)
Updates the provided list of metadata entries. |
Task |
updateTypedMetadataEntry(com.vmware.vcloud.api.rest.schema.MetadataEntryType typedMetadataEntry)
Updates a specific typed metadata entry. |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudResource |
|---|
getReference, getResource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Metadata(VcloudClient client,
com.vmware.vcloud.api.rest.schema.MetadataType metadataType)
client - metadataType - MetadataType| Method Detail |
|---|
public String getMetadataEntry(String key)
throws VCloudException
String
VCloudException
public com.vmware.vcloud.api.rest.schema.MetadataEntryType getTypedMetadataEntry(String key)
throws VCloudException
key -
MetadataEntryType
VCloudExceptionMetadataDomain,
MetadataDomainVisibility
public com.vmware.vcloud.api.rest.schema.MetadataEntryType getTypedMetadataEntry(String key,
MetadataDomain domain)
throws VCloudException
key - domain -
MetadataEntryType
VCloudExceptionMetadataDomain,
MetadataDomainVisibilitypublic HashMap<String,String> getMetadataEntries()
HashMap<String,String>public List<com.vmware.vcloud.api.rest.schema.MetadataEntryType> getTypedMetadataEntries()
List<MetadataEntryType>MetadataDomain,
MetadataDomainVisibility
public Task updateMetadataEntries(HashMap<String,String> metadataEntries)
throws VCloudException
metadataEntries - HashMap<String,String>
Task
VCloudException
public Task updateTypedMetadataEntries(List<com.vmware.vcloud.api.rest.schema.MetadataEntryType> metadataEntries)
throws VCloudException
metadataEntries - List<MetadataEntryType>
Task
VCloudExceptionMetadataDomain,
MetadataDomainVisibility
public Task updateMetadataEntry(String key,
String value)
throws VCloudException
key - Stringvalue - String
Task
VCloudException
public Task updateTypedMetadataEntry(com.vmware.vcloud.api.rest.schema.MetadataEntryType typedMetadataEntry)
throws VCloudException
typedMetadataEntry - MetadataEntryType
Task
VCloudExceptionMetadataDomain,
MetadataDomainVisibility
public Task deleteMetadataEntry(String key)
throws VCloudException
key - String
Task
VCloudException
public Task deleteTypedMetadataEntry(String key)
throws VCloudException
key - String
Task
VCloudException
public Task deleteTypedMetadataEntry(String key,
MetadataDomain domain)
throws VCloudException
key - Stringdomain - MetadataDomain
Task
VCloudException
public static String getMetadataEntry(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType entityRef,
String key)
throws VCloudException
client - VcloudCliententityRef - - Organization, Catalog, Vapp ref etc ReferenceTypekey - String
String
VCloudException
public static HashMap<String,String> getMetadataEntries(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType entityRef)
throws VCloudException
client - VcloudCliententityRef - - Organization, Catalog, Vapp ref etc ReferenceType
HashMap<String,String>
VCloudException
public static Task updateMetadataEntry(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType entityRef,
String key,
String value)
throws VCloudException
client - VcloudCliententityRef - - Organization, Catalog, Vapp ref etc ReferenceTypekey - Stringvalue - String
Task
VCloudException
public static Task deleteMetadataEntry(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType entityRef,
String key)
throws VCloudException
client - VcloudCliententityRef - - Organization, Catalog, Vapp ref etc ReferenceTypekey - String
Task
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||