rack.addLink(new RESTLink("machines", "http://localhost/api/admin/datacenters/1/racks/1/machines"));
return rack;
}
public static TierDto tierPut() {
TierDto tier = new TierDto();
tier.setId(1);
tier.setEnabled(true);
tier.setName("Tier");
tier.addLink(new RESTLink("edit", "http://localhost/api/admin/datacenters/1/storage/tiers/1"));
tier.addLink(new RESTLink("datacenter", "http://localhost/api/admin/datacenters/1"));
tier.addLink(new RESTLink("pools", "http://localhost/api/admin/datacenters/1/storage/tiers/1/pools"));
return tier;
}