public static VirtualMachineTemplateDto virtualMachineTemplatePut() {
VirtualMachineTemplateDto template = new VirtualMachineTemplateDto();
template.setName("Template");
template.setId(1);
template.setDescription("Description");
template.addLink(new RESTLink("edit",
"http://localhost/api/admin/enterprises/1/datacenterrepositories/1/virtualmachinetemplates/1"));
template.addLink(new RESTLink("enterprise", "http://localhost/api/admin/enterprises/1"));
template.addLink(new RESTLink("conversions", "http://localhost/api/admin/enterprises/1"
+ "/datacenterrepositories/1/virtualmachinetemplates/1/conversions"));
template.addLink(new RESTLink("tasks", "http://localhost/api/admin/enterprises/1"
+ "/datacenterrepositories/1/virtualmachinetemplates/1/tasks"));
template.addLink(new RESTLink("diskfile", "http://somewhere.com/file.vmdk"));
template.setDiskFormatType("RAW");
template.setOsType(OSType.MACOS);
template.setLoginUser("myuser");
template.setLoginPassword("mypass");
template.setState(VMTemplateState.DONE);