/**
* VM template domain utilities.
*/
public class TemplateResources {
public static DatacenterRepositoryDto datacenterRepositoryPut() {
DatacenterRepositoryDto dcRepository = new DatacenterRepositoryDto();
dcRepository.setName("Datacenter Repo");
dcRepository.setRepositoryCapacityMb(0);
dcRepository.setRepositoryLocation("10.60.1.104:/volume1/nfs-devel");
dcRepository.setRepositoryRemainingMb(0);
dcRepository.addLink(new RESTLink("applianceManagerRepositoryUri", "http://localhost/am/erepos/1"));
dcRepository.addLink(new RESTLink("datacenter", "http://localhost/api/admin/datacenters/1"));
dcRepository.addLink(new RESTLink("edit", "http://localhost/api/admin/enterprises/1/datacenterrepositories/1"));
dcRepository.addLink(new RESTLink("enterprise", "http://localhost/api/admin/enterprises/1"));
dcRepository.addLink(new RESTLink("refresh",
"http://localhost/api/admin/enterprises/1/datacenterrepositories/1/actions/refresh"));
dcRepository.addLink(new RESTLink("virtualmachinetemplates",
"http://localhost/api/admin/enterprises/1/datacenterrepositories/1/virtualmachinetemplates"));
return dcRepository;
}