@Test public void deleteNicPathTest() throws Exception { final String path = deleteNicURL(nutanixDeleteNICInputs); assertEquals(EXPECTED_DELETE_NIC_PATH, path); }
@NotNull public static String deleteNicURL(NutanixDeleteNICInputs nutanixDeleteNICInputs) throws Exception { final URIBuilder uriBuilder = getUriBuilder(nutanixDeleteNICInputs.getCommonInputs()); StringBuilder pathString = new StringBuilder() .append(API) .append(nutanixDeleteNICInputs.getCommonInputs().getAPIVersion()) .append(GET_VM_DETAILS_PATH) .append(PATH_SEPARATOR) .append(nutanixDeleteNICInputs.getVMUUID()) .append(DELETE_NIC_PATH) .append(nutanixDeleteNICInputs.getNicMacAddress()); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }
NicImpl { @NotNull public static String deleteNicURL(NutanixDeleteNICInputs nutanixDeleteNICInputs) throws Exception { final URIBuilder uriBuilder = getUriBuilder(nutanixDeleteNICInputs.getCommonInputs()); StringBuilder pathString = new StringBuilder() .append(API) .append(nutanixDeleteNICInputs.getCommonInputs().getAPIVersion()) .append(GET_VM_DETAILS_PATH) .append(PATH_SEPARATOR) .append(nutanixDeleteNICInputs.getVMUUID()) .append(DELETE_NIC_PATH) .append(nutanixDeleteNICInputs.getNicMacAddress()); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); } }
NicImpl { @NotNull public static String deleteNicURL(NutanixDeleteNICInputs nutanixDeleteNICInputs) throws Exception { final URIBuilder uriBuilder = getUriBuilder(nutanixDeleteNICInputs.getCommonInputs()); StringBuilder pathString = new StringBuilder() .append(API) .append(nutanixDeleteNICInputs.getCommonInputs().getAPIVersion()) .append(GET_VM_DETAILS_PATH) .append(PATH_SEPARATOR) .append(nutanixDeleteNICInputs.getVMUUID()) .append(DELETE_NIC_PATH) .append(nutanixDeleteNICInputs.getNicMacAddress()); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }  }
NicImpl { @NotNull public static String deleteNicURL(NutanixDeleteNICInputs nutanixDeleteNICInputs) throws Exception { final URIBuilder uriBuilder = getUriBuilder(nutanixDeleteNICInputs.getCommonInputs()); StringBuilder pathString = new StringBuilder() .append(API) .append(nutanixDeleteNICInputs.getCommonInputs().getAPIVersion()) .append(GET_VM_DETAILS_PATH) .append(PATH_SEPARATOR) .append(nutanixDeleteNICInputs.getVMUUID()) .append(DELETE_NIC_PATH) .append(nutanixDeleteNICInputs.getNicMacAddress()); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }  static Map<String, String> AddNic(@NotNull final NutanixAddNicInputs nutanixAddNicInputs); @NotNull static Map<String, String> deleteNic(@NotNull final NutanixDeleteNICInputs nutanixDeleteNICInputs); @NotNull static String AddNicURL(NutanixAddNicInputs nutanixAttachNicInputs); @NotNull static String deleteNicURL(NutanixDeleteNICInputs nutanixDeleteNICInputs); @NotNull static String AddNicBody(NutanixAddNicInputs nutanixAttachNicInputs); }
NicImpl { @NotNull public static String deleteNicURL(NutanixDeleteNICInputs nutanixDeleteNICInputs) throws Exception { final URIBuilder uriBuilder = getUriBuilder(nutanixDeleteNICInputs.getCommonInputs()); StringBuilder pathString = new StringBuilder() .append(API) .append(nutanixDeleteNICInputs.getCommonInputs().getAPIVersion()) .append(GET_VM_DETAILS_PATH) .append(PATH_SEPARATOR) .append(nutanixDeleteNICInputs.getVMUUID()) .append(DELETE_NIC_PATH) .append(nutanixDeleteNICInputs.getNicMacAddress()); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }  static Map<String, String> AddNic(@NotNull final NutanixAddNicInputs nutanixAddNicInputs); @NotNull static Map<String, String> deleteNic(@NotNull final NutanixDeleteNICInputs nutanixDeleteNICInputs); @NotNull static String AddNicURL(NutanixAddNicInputs nutanixAttachNicInputs); @NotNull static String deleteNicURL(NutanixDeleteNICInputs nutanixDeleteNICInputs); @NotNull static String AddNicBody(NutanixAddNicInputs nutanixAttachNicInputs);  }