volume.addLink(new RESTLink("virtualdatacenter", "http://localhost/api/cloud/virtualdatacenters/1"));
return volume;
}
public static VirtualMachineTemplateDto virtualMachineTemplatePut() {
VirtualMachineTemplateDto template = new VirtualMachineTemplateDto();
template.setId(10);
template.setName("m0n0wall");
template.setDiskFormatType(DiskFormatType.VMDK_FLAT.toString());
template.setPath("1/abiquo-repository.abiquo.com/m0n0wall/m0n0wall-1.3b18-i386-flat.vmdk");
template.setDiskFileSize(27262976);
template.setCpuRequired(1);
template.setRamRequired(128);
template.setCpuRequired(27262976);
template.setCreationUser("SYSTEM");
template.setIconUrl("http://ww1.prweb.com/prfiles/2010/08/02/2823234/gI_0_HakunaLogoMedium.jpg");
template.addLink(new RESTLink("icon", "http://localhost/api/config/icons/1"));
template.addLink(new RESTLink("category", "http://localhost/api/config/categories/1"));
return template;
}