private ConfigurationSet createConfigNetwork(){ ConfigurationSet networkConfigset = new ConfigurationSet(); networkConfigset.setConfigurationSetType(ConfigurationSetTypes.NETWORKCONFIGURATION); // Define endpoints ArrayList<InputEndpoint> enpoints = new ArrayList<InputEndpoint>(); networkConfigset.setInputEndpoints(enpoints); InputEndpoint sshPort = new InputEndpoint(); enpoints.add(sshPort); sshPort.setPort(22); sshPort.setLocalPort(22); sshPort.setName("ssh"); sshPort.setProtocol(InputEndpointTransportProtocol.TCP); return networkConfigset; }
ConfigurationSet configurationSet = new ConfigurationSet(); String type=ConfigurationSetTypes.LINUXPROVISIONINGCONFIGURATION; if(!vm.getOs().equals(""))
for (int i1 = 0; i1 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").size(); i1 = i1 + 1) { org.w3c.dom.Element configurationSetsElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").get(i1)); ConfigurationSet configurationSetInstance = new ConfigurationSet(); result.getConfigurationSets().add(configurationSetInstance);
for (int i1 = 0; i1 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").size(); i1 = i1 + 1) { org.w3c.dom.Element configurationSetsElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").get(i1)); ConfigurationSet configurationSetInstance = new ConfigurationSet(); result.getConfigurationSets().add(configurationSetInstance);
for (int i10 = 0; i10 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").size(); i10 = i10 + 1) { org.w3c.dom.Element configurationSetsElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").get(i10)); ConfigurationSet configurationSetInstance = new ConfigurationSet(); roleInstance.getConfigurationSets().add(configurationSetInstance);
for (int i10 = 0; i10 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").size(); i10 = i10 + 1) { org.w3c.dom.Element configurationSetsElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").get(i10)); ConfigurationSet configurationSetInstance = new ConfigurationSet(); roleInstance.getConfigurationSets().add(configurationSetInstance);
for (int i11 = 0; i11 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").size(); i11 = i11 + 1) { org.w3c.dom.Element configurationSetsElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").get(i11)); ConfigurationSet configurationSetInstance = new ConfigurationSet(); roleInstance.getConfigurationSets().add(configurationSetInstance);
for (int i14 = 0; i14 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").size(); i14 = i14 + 1) { org.w3c.dom.Element configurationSetsElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").get(i14)); ConfigurationSet configurationSetInstance = new ConfigurationSet(); roleInstance.getConfigurationSets().add(configurationSetInstance);
for (int i14 = 0; i14 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").size(); i14 = i14 + 1) { org.w3c.dom.Element configurationSetsElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").get(i14)); ConfigurationSet configurationSetInstance = new ConfigurationSet(); roleInstance.getConfigurationSets().add(configurationSetInstance);
for (int i15 = 0; i15 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").size(); i15 = i15 + 1) { org.w3c.dom.Element configurationSetsElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(configurationSetsSequenceElement, "http://schemas.microsoft.com/windowsazure", "ConfigurationSet").get(i15)); ConfigurationSet configurationSetInstance = new ConfigurationSet(); roleInstance.getConfigurationSets().add(configurationSetInstance);