Search in sources :

Example 1 with CustomizationSpecManager

use of com.vmware.vim25.mo.CustomizationSpecManager in project vsphere-cloud-plugin by jenkinsci.

the class VSphere method getCustomizationSpecByName.

public CustomizationSpecItem getCustomizationSpecByName(final String customizationSpecName) throws VSphereException {
    try {
        ServerConnection conn = getServiceInstance().getServerConnection();
        CustomizationSpecManager mgr = new CustomizationSpecManager(conn, getServiceInstance().getServiceContent().customizationSpecManager);
        return mgr.getCustomizationSpec(customizationSpecName);
    } catch (Exception e) {
        throw new VSphereException(e);
    }
}
Also used : ServerConnection(com.vmware.vim25.mo.ServerConnection) CustomizationSpecManager(com.vmware.vim25.mo.CustomizationSpecManager) MalformedURLException(java.net.MalformedURLException) RemoteException(java.rmi.RemoteException)

Aggregations

CustomizationSpecManager (com.vmware.vim25.mo.CustomizationSpecManager)1 ServerConnection (com.vmware.vim25.mo.ServerConnection)1 MalformedURLException (java.net.MalformedURLException)1 RemoteException (java.rmi.RemoteException)1