@Test public void testFailureDeployTemplate() throws Exception { prepareForTests(); Mockito.doThrow(new Exception(OPERATION_FAILED)).when(service).deployOvfTemplate(any(HttpInputs.class), any(VmInputs.class), anyString(), anyMap(), anyMap()); Map<String, String> result = action.deployTemplate("", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", OVF_NETWORK_JS_VALUES, NET_PORT_GROUP_JS_VALUES, OVF_PROP_KEY_JS_VALUES, OVF_PROP_VALUE_JS_VALUES, "", null); Mockito.verify(service).deployOvfTemplate(any(HttpInputs.class), any(VmInputs.class), anyString(), anyMap(), anyMap()); assertEquals(ReturnCodes.FAILURE, result.get(Outputs.RETURN_CODE)); assertEquals(OPERATION_FAILED, result.get(Outputs.RETURN_RESULT)); assertTrue(StringUtilities.contains(result.get(Outputs.RETURN_RESULT), OPERATION_FAILED)); verifyStatic(); OvfUtils.getOvfMappings(OVF_NETWORK_JS_VALUES, NET_PORT_GROUP_JS_VALUES); OvfUtils.getOvfMappings(OVF_PROP_KEY_JS_VALUES, OVF_PROP_VALUE_JS_VALUES); PowerMockito.verifyNew(DeployOvfTemplateService.class); }
@Action(name = "Deploy OVF Template", outputs = { @Output(Outputs.RETURN_CODE), @Output(Outputs.RETURN_RESULT), @Output(Outputs.EXCEPTION) }, responses = { @Response(text = Outputs.SUCCESS, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_SUCCESS, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED), @Response(text = Outputs.FAILURE, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_FAILURE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR, isOnFail = true) }) public Map<String, String> deployTemplate(@Param(value = HOST, required = true) String host, @Param(value = USERNAME) String username, @Param(value = PASSWORD, encrypted = true, required = true) String password, @Param(value = PORT) String port, @Param(value = PROTOCOL) String protocol, @Param(value = TRUST_EVERYONE) String trustEveryone, @Param(value = CLOSE_SESSION) String closeSession, @Param(value = PATH, required = true) String path, @Param(value = NAME, required = true) String name, @Param(value = DATACENTER, required = true) String datacenter, @Param(value = DATA_STORE, required = true) String dataStore, @Param(value = HOSTNAME, required = true) String hostname, @Param(value = CLUSTER_NAME) String clusterName, @Param(value = RESOURCE_POOL) String resourcePool, @Param(value = VM_FOLDER) String vmFolder, @Param(value = DISK_PROVISIONING) String diskProvisioning, @Param(value = IP_PROTOCOL) String ipProtocol, @Param(value = IP_ALLOC_SCHEME) String ipAllocScheme, @Param(value = LOCALE_LANG) String localeLang, @Param(value = LOCALE_COUNTRY) String localeCountry, @Param(value = OVF_NETWORK_JS) String ovfNetworkJS, @Param(value = NET_PORT_GROUP_JS) String netPortGroupJS, @Param(value = OVF_PROP_KEY_JS) String ovfPropKeyJS, @Param(value = OVF_PROP_VALUE_JS) String ovfPropValueJS, @Param(value = PARALLEL) String parallel, @Param(value = VMWARE_GLOBAL_SESSION_OBJECT) GlobalSessionObject<Map<String, Connection>> globalSessionObject) { try { final Locale locale = InputUtils.getLocale(localeLang, localeCountry); final HttpInputs httpInputs = new HttpInputs.HttpInputsBuilder() .withHost(host) .withPort(port) .withProtocol(protocol) .withUsername(username) .withPassword(password) .withTrustEveryone(defaultIfEmpty(trustEveryone, FALSE)) .withCloseSession(defaultIfEmpty(closeSession, TRUE)) .withGlobalSessionObject(globalSessionObject) .build(); final VmInputs vmInputs = new VmInputs.VmInputsBuilder() .withHostname(hostname) .withVirtualMachineName(name) .withDataCenterName(datacenter) .withDataStore(dataStore) .withCloneDataStore(dataStore) .withFolderName(vmFolder) .withLocale(locale) .withClusterName(clusterName) .withResourcePool(resourcePool) .withIpProtocol(ipProtocol) .withIpAllocScheme(ipAllocScheme) .withDiskProvisioning(diskProvisioning) .build(); final Map<String, String> ovfNetworkMappings = OvfUtils.getOvfMappings(ovfNetworkJS, netPortGroupJS); final Map<String, String> ovfPropertyMappings = OvfUtils.getOvfMappings(ovfPropKeyJS, ovfPropValueJS); new DeployOvfTemplateService(InputUtils.getBooleanInput(parallel, true)) .deployOvfTemplate(httpInputs, vmInputs, path, ovfNetworkMappings, ovfPropertyMappings); return OutputUtilities.getSuccessResultsMap(SUCCESSFULLY_DEPLOYED); } catch (Exception ex) { return OutputUtilities.getFailureResultsMap(ex); } }
DeployOvfTemplateAction { @Action(name = "Deploy OVF Template", outputs = { @Output(Outputs.RETURN_CODE), @Output(Outputs.RETURN_RESULT), @Output(Outputs.EXCEPTION) }, responses = { @Response(text = Outputs.SUCCESS, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_SUCCESS, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED), @Response(text = Outputs.FAILURE, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_FAILURE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR, isOnFail = true) }) public Map<String, String> deployTemplate(@Param(value = HOST, required = true) String host, @Param(value = USERNAME) String username, @Param(value = PASSWORD, encrypted = true, required = true) String password, @Param(value = PORT) String port, @Param(value = PROTOCOL) String protocol, @Param(value = TRUST_EVERYONE) String trustEveryone, @Param(value = CLOSE_SESSION) String closeSession, @Param(value = PATH, required = true) String path, @Param(value = NAME, required = true) String name, @Param(value = DATACENTER, required = true) String datacenter, @Param(value = DATA_STORE, required = true) String dataStore, @Param(value = HOSTNAME, required = true) String hostname, @Param(value = CLUSTER_NAME) String clusterName, @Param(value = RESOURCE_POOL) String resourcePool, @Param(value = VM_FOLDER) String vmFolder, @Param(value = DISK_PROVISIONING) String diskProvisioning, @Param(value = IP_PROTOCOL) String ipProtocol, @Param(value = IP_ALLOC_SCHEME) String ipAllocScheme, @Param(value = LOCALE_LANG) String localeLang, @Param(value = LOCALE_COUNTRY) String localeCountry, @Param(value = OVF_NETWORK_JS) String ovfNetworkJS, @Param(value = NET_PORT_GROUP_JS) String netPortGroupJS, @Param(value = OVF_PROP_KEY_JS) String ovfPropKeyJS, @Param(value = OVF_PROP_VALUE_JS) String ovfPropValueJS, @Param(value = PARALLEL) String parallel, @Param(value = VMWARE_GLOBAL_SESSION_OBJECT) GlobalSessionObject<Map<String, Connection>> globalSessionObject) { try { final Locale locale = InputUtils.getLocale(localeLang, localeCountry); final HttpInputs httpInputs = new HttpInputs.HttpInputsBuilder() .withHost(host) .withPort(port) .withProtocol(protocol) .withUsername(username) .withPassword(password) .withTrustEveryone(defaultIfEmpty(trustEveryone, FALSE)) .withCloseSession(defaultIfEmpty(closeSession, TRUE)) .withGlobalSessionObject(globalSessionObject) .build(); final VmInputs vmInputs = new VmInputs.VmInputsBuilder() .withHostname(hostname) .withVirtualMachineName(name) .withDataCenterName(datacenter) .withDataStore(dataStore) .withCloneDataStore(dataStore) .withFolderName(vmFolder) .withLocale(locale) .withClusterName(clusterName) .withResourcePool(resourcePool) .withIpProtocol(ipProtocol) .withIpAllocScheme(ipAllocScheme) .withDiskProvisioning(diskProvisioning) .build(); final Map<String, String> ovfNetworkMappings = OvfUtils.getOvfMappings(ovfNetworkJS, netPortGroupJS); final Map<String, String> ovfPropertyMappings = OvfUtils.getOvfMappings(ovfPropKeyJS, ovfPropValueJS); new DeployOvfTemplateService(InputUtils.getBooleanInput(parallel, true)) .deployOvfTemplate(httpInputs, vmInputs, path, ovfNetworkMappings, ovfPropertyMappings); return OutputUtilities.getSuccessResultsMap(SUCCESSFULLY_DEPLOYED); } catch (Exception ex) { return OutputUtilities.getFailureResultsMap(ex); } } }
DeployOvfTemplateAction { @Action(name = "Deploy OVF Template", outputs = { @Output(Outputs.RETURN_CODE), @Output(Outputs.RETURN_RESULT), @Output(Outputs.EXCEPTION) }, responses = { @Response(text = Outputs.SUCCESS, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_SUCCESS, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED), @Response(text = Outputs.FAILURE, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_FAILURE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR, isOnFail = true) }) public Map<String, String> deployTemplate(@Param(value = HOST, required = true) String host, @Param(value = USERNAME) String username, @Param(value = PASSWORD, encrypted = true, required = true) String password, @Param(value = PORT) String port, @Param(value = PROTOCOL) String protocol, @Param(value = TRUST_EVERYONE) String trustEveryone, @Param(value = CLOSE_SESSION) String closeSession, @Param(value = PATH, required = true) String path, @Param(value = NAME, required = true) String name, @Param(value = DATACENTER, required = true) String datacenter, @Param(value = DATA_STORE, required = true) String dataStore, @Param(value = HOSTNAME, required = true) String hostname, @Param(value = CLUSTER_NAME) String clusterName, @Param(value = RESOURCE_POOL) String resourcePool, @Param(value = VM_FOLDER) String vmFolder, @Param(value = DISK_PROVISIONING) String diskProvisioning, @Param(value = IP_PROTOCOL) String ipProtocol, @Param(value = IP_ALLOC_SCHEME) String ipAllocScheme, @Param(value = LOCALE_LANG) String localeLang, @Param(value = LOCALE_COUNTRY) String localeCountry, @Param(value = OVF_NETWORK_JS) String ovfNetworkJS, @Param(value = NET_PORT_GROUP_JS) String netPortGroupJS, @Param(value = OVF_PROP_KEY_JS) String ovfPropKeyJS, @Param(value = OVF_PROP_VALUE_JS) String ovfPropValueJS, @Param(value = PARALLEL) String parallel, @Param(value = VMWARE_GLOBAL_SESSION_OBJECT) GlobalSessionObject<Map<String, Connection>> globalSessionObject) { try { final Locale locale = InputUtils.getLocale(localeLang, localeCountry); final HttpInputs httpInputs = new HttpInputs.HttpInputsBuilder() .withHost(host) .withPort(port) .withProtocol(protocol) .withUsername(username) .withPassword(password) .withTrustEveryone(defaultIfEmpty(trustEveryone, FALSE)) .withCloseSession(defaultIfEmpty(closeSession, TRUE)) .withGlobalSessionObject(globalSessionObject) .build(); final VmInputs vmInputs = new VmInputs.VmInputsBuilder() .withHostname(hostname) .withVirtualMachineName(name) .withDataCenterName(datacenter) .withDataStore(dataStore) .withCloneDataStore(dataStore) .withFolderName(vmFolder) .withLocale(locale) .withClusterName(clusterName) .withResourcePool(resourcePool) .withIpProtocol(ipProtocol) .withIpAllocScheme(ipAllocScheme) .withDiskProvisioning(diskProvisioning) .build(); final Map<String, String> ovfNetworkMappings = OvfUtils.getOvfMappings(ovfNetworkJS, netPortGroupJS); final Map<String, String> ovfPropertyMappings = OvfUtils.getOvfMappings(ovfPropKeyJS, ovfPropValueJS); new DeployOvfTemplateService(InputUtils.getBooleanInput(parallel, true)) .deployOvfTemplate(httpInputs, vmInputs, path, ovfNetworkMappings, ovfPropertyMappings); return OutputUtilities.getSuccessResultsMap(SUCCESSFULLY_DEPLOYED); } catch (Exception ex) { return OutputUtilities.getFailureResultsMap(ex); } }  }
DeployOvfTemplateAction { @Action(name = "Deploy OVF Template", outputs = { @Output(Outputs.RETURN_CODE), @Output(Outputs.RETURN_RESULT), @Output(Outputs.EXCEPTION) }, responses = { @Response(text = Outputs.SUCCESS, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_SUCCESS, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED), @Response(text = Outputs.FAILURE, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_FAILURE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR, isOnFail = true) }) public Map<String, String> deployTemplate(@Param(value = HOST, required = true) String host, @Param(value = USERNAME) String username, @Param(value = PASSWORD, encrypted = true, required = true) String password, @Param(value = PORT) String port, @Param(value = PROTOCOL) String protocol, @Param(value = TRUST_EVERYONE) String trustEveryone, @Param(value = CLOSE_SESSION) String closeSession, @Param(value = PATH, required = true) String path, @Param(value = NAME, required = true) String name, @Param(value = DATACENTER, required = true) String datacenter, @Param(value = DATA_STORE, required = true) String dataStore, @Param(value = HOSTNAME, required = true) String hostname, @Param(value = CLUSTER_NAME) String clusterName, @Param(value = RESOURCE_POOL) String resourcePool, @Param(value = VM_FOLDER) String vmFolder, @Param(value = DISK_PROVISIONING) String diskProvisioning, @Param(value = IP_PROTOCOL) String ipProtocol, @Param(value = IP_ALLOC_SCHEME) String ipAllocScheme, @Param(value = LOCALE_LANG) String localeLang, @Param(value = LOCALE_COUNTRY) String localeCountry, @Param(value = OVF_NETWORK_JS) String ovfNetworkJS, @Param(value = NET_PORT_GROUP_JS) String netPortGroupJS, @Param(value = OVF_PROP_KEY_JS) String ovfPropKeyJS, @Param(value = OVF_PROP_VALUE_JS) String ovfPropValueJS, @Param(value = PARALLEL) String parallel, @Param(value = VMWARE_GLOBAL_SESSION_OBJECT) GlobalSessionObject<Map<String, Connection>> globalSessionObject) { try { final Locale locale = InputUtils.getLocale(localeLang, localeCountry); final HttpInputs httpInputs = new HttpInputs.HttpInputsBuilder() .withHost(host) .withPort(port) .withProtocol(protocol) .withUsername(username) .withPassword(password) .withTrustEveryone(defaultIfEmpty(trustEveryone, FALSE)) .withCloseSession(defaultIfEmpty(closeSession, TRUE)) .withGlobalSessionObject(globalSessionObject) .build(); final VmInputs vmInputs = new VmInputs.VmInputsBuilder() .withHostname(hostname) .withVirtualMachineName(name) .withDataCenterName(datacenter) .withDataStore(dataStore) .withCloneDataStore(dataStore) .withFolderName(vmFolder) .withLocale(locale) .withClusterName(clusterName) .withResourcePool(resourcePool) .withIpProtocol(ipProtocol) .withIpAllocScheme(ipAllocScheme) .withDiskProvisioning(diskProvisioning) .build(); final Map<String, String> ovfNetworkMappings = OvfUtils.getOvfMappings(ovfNetworkJS, netPortGroupJS); final Map<String, String> ovfPropertyMappings = OvfUtils.getOvfMappings(ovfPropKeyJS, ovfPropValueJS); new DeployOvfTemplateService(InputUtils.getBooleanInput(parallel, true)) .deployOvfTemplate(httpInputs, vmInputs, path, ovfNetworkMappings, ovfPropertyMappings); return OutputUtilities.getSuccessResultsMap(SUCCESSFULLY_DEPLOYED); } catch (Exception ex) { return OutputUtilities.getFailureResultsMap(ex); } }  @Action(name = "Deploy OVF Template", outputs = { @Output(Outputs.RETURN_CODE), @Output(Outputs.RETURN_RESULT), @Output(Outputs.EXCEPTION) }, responses = { @Response(text = Outputs.SUCCESS, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_SUCCESS, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED), @Response(text = Outputs.FAILURE, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_FAILURE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR, isOnFail = true) }) Map<String, String> deployTemplate(@Param(value = HOST, required = true) String host,
                                              @Param(value = USERNAME) String username,
                                              @Param(value = PASSWORD, encrypted = true, required = true) String password,
                                              @Param(value = PORT) String port,
                                              @Param(value = PROTOCOL) String protocol,
                                              @Param(value = TRUST_EVERYONE) String trustEveryone,
                                              @Param(value = CLOSE_SESSION) String closeSession,
                                              @Param(value = PATH, required = true) String path,
                                              @Param(value = NAME, required = true) String name,
                                              @Param(value = DATACENTER, required = true) String datacenter,
                                              @Param(value = DATA_STORE, required = true) String dataStore,
                                              @Param(value = HOSTNAME, required = true) String hostname,
                                              @Param(value = CLUSTER_NAME) String clusterName,
                                              @Param(value = RESOURCE_POOL) String resourcePool,
                                              @Param(value = VM_FOLDER) String vmFolder,
                                              @Param(value = DISK_PROVISIONING) String diskProvisioning,
                                              @Param(value = IP_PROTOCOL) String ipProtocol,
                                              @Param(value = IP_ALLOC_SCHEME) String ipAllocScheme,
                                              @Param(value = LOCALE_LANG) String localeLang,
                                              @Param(value = LOCALE_COUNTRY) String localeCountry,
                                              @Param(value = OVF_NETWORK_JS) String ovfNetworkJS,
                                              @Param(value = NET_PORT_GROUP_JS) String netPortGroupJS,
                                              @Param(value = OVF_PROP_KEY_JS) String ovfPropKeyJS,
                                              @Param(value = OVF_PROP_VALUE_JS) String ovfPropValueJS,
                                              @Param(value = PARALLEL) String parallel,
                                              @Param(value = VMWARE_GLOBAL_SESSION_OBJECT) GlobalSessionObject<Map<String, Connection>> globalSessionObject); }
DeployOvfTemplateAction { @Action(name = "Deploy OVF Template", outputs = { @Output(Outputs.RETURN_CODE), @Output(Outputs.RETURN_RESULT), @Output(Outputs.EXCEPTION) }, responses = { @Response(text = Outputs.SUCCESS, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_SUCCESS, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED), @Response(text = Outputs.FAILURE, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_FAILURE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR, isOnFail = true) }) public Map<String, String> deployTemplate(@Param(value = HOST, required = true) String host, @Param(value = USERNAME) String username, @Param(value = PASSWORD, encrypted = true, required = true) String password, @Param(value = PORT) String port, @Param(value = PROTOCOL) String protocol, @Param(value = TRUST_EVERYONE) String trustEveryone, @Param(value = CLOSE_SESSION) String closeSession, @Param(value = PATH, required = true) String path, @Param(value = NAME, required = true) String name, @Param(value = DATACENTER, required = true) String datacenter, @Param(value = DATA_STORE, required = true) String dataStore, @Param(value = HOSTNAME, required = true) String hostname, @Param(value = CLUSTER_NAME) String clusterName, @Param(value = RESOURCE_POOL) String resourcePool, @Param(value = VM_FOLDER) String vmFolder, @Param(value = DISK_PROVISIONING) String diskProvisioning, @Param(value = IP_PROTOCOL) String ipProtocol, @Param(value = IP_ALLOC_SCHEME) String ipAllocScheme, @Param(value = LOCALE_LANG) String localeLang, @Param(value = LOCALE_COUNTRY) String localeCountry, @Param(value = OVF_NETWORK_JS) String ovfNetworkJS, @Param(value = NET_PORT_GROUP_JS) String netPortGroupJS, @Param(value = OVF_PROP_KEY_JS) String ovfPropKeyJS, @Param(value = OVF_PROP_VALUE_JS) String ovfPropValueJS, @Param(value = PARALLEL) String parallel, @Param(value = VMWARE_GLOBAL_SESSION_OBJECT) GlobalSessionObject<Map<String, Connection>> globalSessionObject) { try { final Locale locale = InputUtils.getLocale(localeLang, localeCountry); final HttpInputs httpInputs = new HttpInputs.HttpInputsBuilder() .withHost(host) .withPort(port) .withProtocol(protocol) .withUsername(username) .withPassword(password) .withTrustEveryone(defaultIfEmpty(trustEveryone, FALSE)) .withCloseSession(defaultIfEmpty(closeSession, TRUE)) .withGlobalSessionObject(globalSessionObject) .build(); final VmInputs vmInputs = new VmInputs.VmInputsBuilder() .withHostname(hostname) .withVirtualMachineName(name) .withDataCenterName(datacenter) .withDataStore(dataStore) .withCloneDataStore(dataStore) .withFolderName(vmFolder) .withLocale(locale) .withClusterName(clusterName) .withResourcePool(resourcePool) .withIpProtocol(ipProtocol) .withIpAllocScheme(ipAllocScheme) .withDiskProvisioning(diskProvisioning) .build(); final Map<String, String> ovfNetworkMappings = OvfUtils.getOvfMappings(ovfNetworkJS, netPortGroupJS); final Map<String, String> ovfPropertyMappings = OvfUtils.getOvfMappings(ovfPropKeyJS, ovfPropValueJS); new DeployOvfTemplateService(InputUtils.getBooleanInput(parallel, true)) .deployOvfTemplate(httpInputs, vmInputs, path, ovfNetworkMappings, ovfPropertyMappings); return OutputUtilities.getSuccessResultsMap(SUCCESSFULLY_DEPLOYED); } catch (Exception ex) { return OutputUtilities.getFailureResultsMap(ex); } }  @Action(name = "Deploy OVF Template", outputs = { @Output(Outputs.RETURN_CODE), @Output(Outputs.RETURN_RESULT), @Output(Outputs.EXCEPTION) }, responses = { @Response(text = Outputs.SUCCESS, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_SUCCESS, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED), @Response(text = Outputs.FAILURE, field = Outputs.RETURN_CODE, value = Outputs.RETURN_CODE_FAILURE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.ERROR, isOnFail = true) }) Map<String, String> deployTemplate(@Param(value = HOST, required = true) String host,
                                              @Param(value = USERNAME) String username,
                                              @Param(value = PASSWORD, encrypted = true, required = true) String password,
                                              @Param(value = PORT) String port,
                                              @Param(value = PROTOCOL) String protocol,
                                              @Param(value = TRUST_EVERYONE) String trustEveryone,
                                              @Param(value = CLOSE_SESSION) String closeSession,
                                              @Param(value = PATH, required = true) String path,
                                              @Param(value = NAME, required = true) String name,
                                              @Param(value = DATACENTER, required = true) String datacenter,
                                              @Param(value = DATA_STORE, required = true) String dataStore,
                                              @Param(value = HOSTNAME, required = true) String hostname,
                                              @Param(value = CLUSTER_NAME) String clusterName,
                                              @Param(value = RESOURCE_POOL) String resourcePool,
                                              @Param(value = VM_FOLDER) String vmFolder,
                                              @Param(value = DISK_PROVISIONING) String diskProvisioning,
                                              @Param(value = IP_PROTOCOL) String ipProtocol,
                                              @Param(value = IP_ALLOC_SCHEME) String ipAllocScheme,
                                              @Param(value = LOCALE_LANG) String localeLang,
                                              @Param(value = LOCALE_COUNTRY) String localeCountry,
                                              @Param(value = OVF_NETWORK_JS) String ovfNetworkJS,
                                              @Param(value = NET_PORT_GROUP_JS) String netPortGroupJS,
                                              @Param(value = OVF_PROP_KEY_JS) String ovfPropKeyJS,
                                              @Param(value = OVF_PROP_VALUE_JS) String ovfPropValueJS,
                                              @Param(value = PARALLEL) String parallel,
                                              @Param(value = VMWARE_GLOBAL_SESSION_OBJECT) GlobalSessionObject<Map<String, Connection>> globalSessionObject);  }