rack.addLink(new RESTLink("machines", "http://localhost/api/admin/datacenters/1/racks/1/machines"));
return rack;
}
public static UcsRackDto managedRackPut() {
UcsRackDto rack = managedRackPost();
rack.setId(1);
rack.addLink(new RESTLink("datacenter", "http://localhost/api/admin/datacenters/1"));
rack.addLink(new RESTLink("edit", "http://localhost/api/admin/datacenters/1/racks/1"));
rack.addLink(new RESTLink("fsm", "http://localhost/api/admin/datacenters/1/racks/1/fsm"));
rack.addLink(new RESTLink("logicservers", "http://localhost/api/admin/datacenters/1/racks/1/logicservers"));
rack.addLink(new RESTLink("ls-templates", "http://localhost/api/admin/datacenters/1/racks/1/lstemplates"));
rack.addLink(new RESTLink("organizations", "http://localhost/api/admin/datacenters/1/racks/1/organizations"));
rack.addLink(new RESTLink("ls-associate",
"http://localhost/api/admin/datacenters/1/racks/1/logicservers/associate"));
rack.addLink(new RESTLink("ls-associateclone",
"http://localhost/api/admin/datacenters/1/racks/1/logicservers/assocclone"));
rack.addLink(new RESTLink("ls-associatetemplate",
"http://localhost/api/admin/datacenters/1/racks/1/logicservers/associatetemplate"));
rack.addLink(new RESTLink("ls-clone", "http://localhost/api/admin/datacenters/1/racks/1/logicservers/clone"));
rack.addLink(new RESTLink("ls-delete", "http://localhost/api/admin/datacenters/1/racks/1/logicservers/delete"));
rack.addLink(new RESTLink("ls-dissociate",
"http://localhost/api/admin/datacenters/1/racks/1/logicservers/dissociate"));
return rack;
}