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);
}
}
Aggregations