org.dasein.cloud.vcloud
Class vCloudMethod
java.lang.Object
org.dasein.cloud.vcloud.vCloudMethod
public class vCloudMethod
- extends Object
[Class Documentation]
Created by George Reese: 2/4/13 6:31 PM
- Author:
- George Reese
|
Method Summary |
vCloudMethod.Org |
authenticate(boolean force)
|
void |
checkError(Document xmlDocument)
|
String |
delete(String resource,
String id)
|
String |
get(String resource,
String id)
|
String |
getAction(String endpoint)
|
String |
getAPIVersion()
|
protected org.apache.http.client.HttpClient |
getClient(boolean forAuthentication)
|
String |
getMediaTypeForActionAddCatalog()
|
String |
getMediaTypeForActionAttachVolume()
|
String |
getMediaTypeForActionCaptureVApp()
|
String |
getMediaTypeForActionComposeVApp()
|
String |
getMediaTypeForActionCreateDisk()
|
String |
getMediaTypeForActionDeployVApp()
|
String |
getMediaTypeForActionInstantiateVApp()
|
String |
getMediaTypeForActionUndeployVApp()
|
String |
getMediaTypeForCatalog()
|
String |
getMediaTypeForCatalogItem()
|
String |
getMediaTypeForDisk()
|
String |
getMediaTypeForGuestCustomizationSection()
|
String |
getMediaTypeForMetadata()
|
String |
getMediaTypeForNetworkConnectionSection()
|
String |
getMediaTypeForOrg()
|
String |
getMediaTypeForOrgList()
|
String |
getMediaTypeForRasdItem()
|
String |
getMediaTypeForVApp()
|
String |
getMediaTypeForVAppTemplate()
|
String |
getMediaTypeForVDC()
|
String |
getMediaTypeForVM()
|
int |
getNetworkQuota()
|
String |
getOrgName(String href)
|
Region |
getRegion()
|
int |
getVMQuota()
|
static boolean |
isSupported(String version)
|
Collection<DataCenter> |
listDataCenters()
|
static boolean |
matches(String currentVersion,
String minimumVersion,
String maximumVersion)
|
void |
parseError(Node errorNode)
|
void |
parseMetaData(Taggable resource,
String xml)
|
Document |
parseXML(String xml)
|
String |
post(String action,
String vdcId,
String payload)
|
String |
post(String action,
String endpoint,
String contentType,
String payload)
|
void |
postMetaData(String resource,
String id,
Map<String,Object> metadata)
|
String |
put(String action,
String endpoint,
String contentType,
String payload)
|
String |
toAdminURL(String resource,
String id)
|
String |
toURL(String resource,
String id)
|
void |
waitFor(String xmlTask)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSIONS
public static final String[] VERSIONS
CAPTURE_VAPP
public static final String CAPTURE_VAPP
- See Also:
- Constant Field Values
COMPOSE_VAPP
public static final String COMPOSE_VAPP
- See Also:
- Constant Field Values
CREATE_DISK
public static final String CREATE_DISK
- See Also:
- Constant Field Values
INSTANTIATE_VAPP
public static final String INSTANTIATE_VAPP
- See Also:
- Constant Field Values
vCloudMethod
public vCloudMethod(@Nonnull
vCloud provider)
isSupported
public static boolean isSupported(@Nonnull
String version)
matches
public static boolean matches(@Nonnull
String currentVersion,
@Nonnull
String minimumVersion,
@Nullable
String maximumVersion)
checkError
public void checkError(@Nonnull
Document xmlDocument)
throws CloudException
- Throws:
CloudException
authenticate
@Nonnull
public vCloudMethod.Org authenticate(boolean force)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
delete
@Nullable
public String delete(@Nonnull
String resource,
@Nonnull
String id)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
get
@Nullable
public String get(@Nonnull
String resource,
@Nullable
String id)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getAction
@Nonnull
public String getAction(@Nonnull
String endpoint)
getAPIVersion
@Nonnull
public String getAPIVersion()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getClient
@Nonnull
protected org.apache.http.client.HttpClient getClient(boolean forAuthentication)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getMediaTypeForActionAddCatalog
@Nonnull
public String getMediaTypeForActionAddCatalog()
getMediaTypeForActionAttachVolume
@Nonnull
public String getMediaTypeForActionAttachVolume()
getMediaTypeForActionInstantiateVApp
@Nonnull
public String getMediaTypeForActionInstantiateVApp()
getMediaTypeForActionCaptureVApp
@Nonnull
public String getMediaTypeForActionCaptureVApp()
getMediaTypeForActionComposeVApp
@Nonnull
public String getMediaTypeForActionComposeVApp()
getMediaTypeForActionCreateDisk
@Nonnull
public String getMediaTypeForActionCreateDisk()
getMediaTypeForActionDeployVApp
@Nonnull
public String getMediaTypeForActionDeployVApp()
getMediaTypeForActionUndeployVApp
@Nonnull
public String getMediaTypeForActionUndeployVApp()
getMediaTypeForCatalog
@Nonnull
public String getMediaTypeForCatalog()
getMediaTypeForCatalogItem
@Nonnull
public String getMediaTypeForCatalogItem()
getMediaTypeForDisk
@Nonnull
public String getMediaTypeForDisk()
getMediaTypeForGuestCustomizationSection
@Nonnull
public String getMediaTypeForGuestCustomizationSection()
getMediaTypeForMetadata
@Nonnull
public String getMediaTypeForMetadata()
getMediaTypeForNetworkConnectionSection
@Nonnull
public String getMediaTypeForNetworkConnectionSection()
getMediaTypeForOrg
@Nonnull
public String getMediaTypeForOrg()
getMediaTypeForOrgList
@Nonnull
public String getMediaTypeForOrgList()
getMediaTypeForRasdItem
@Nonnull
public String getMediaTypeForRasdItem()
getMediaTypeForVApp
@Nonnull
public String getMediaTypeForVApp()
getMediaTypeForVAppTemplate
@Nonnull
public String getMediaTypeForVAppTemplate()
getMediaTypeForVM
@Nonnull
public String getMediaTypeForVM()
getMediaTypeForVDC
@Nonnull
public String getMediaTypeForVDC()
getNetworkQuota
public int getNetworkQuota()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getOrgName
@Nonnull
public String getOrgName(@Nonnull
String href)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getRegion
@Nonnull
public Region getRegion()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getVMQuota
public int getVMQuota()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
listDataCenters
public Collection<DataCenter> listDataCenters()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
parseError
public void parseError(@Nonnull
Node errorNode)
throws CloudException
- Throws:
CloudException
parseMetaData
public void parseMetaData(@Nonnull
Taggable resource,
@Nonnull
String xml)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
parseXML
@Nonnull
public Document parseXML(@Nonnull
String xml)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
post
@Nonnull
public String post(@Nonnull
String action,
@Nullable
String vdcId,
@Nullable
String payload)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
post
@Nonnull
public String post(@Nonnull
String action,
@Nonnull
String endpoint,
@Nullable
String contentType,
@Nullable
String payload)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
postMetaData
public void postMetaData(@Nonnull
String resource,
@Nonnull
String id,
@Nonnull
Map<String,Object> metadata)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
put
@Nonnull
public String put(@Nonnull
String action,
@Nonnull
String endpoint,
@Nullable
String contentType,
@Nullable
String payload)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
toAdminURL
@Nonnull
public String toAdminURL(@Nonnull
String resource,
@Nullable
String id)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
toURL
@Nonnull
public String toURL(@Nonnull
String resource,
@Nullable
String id)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
waitFor
public void waitFor(@Nullable
String xmlTask)
throws CloudException
- Throws:
CloudException
Copyright © 2014 Dell, Inc.. All Rights Reserved.