use of com.emc.storageos.model.host.HostUpdateParam in project coprhd-controller by CoprHD.
the class ClusterAutoExportTest method moveHost.
private void moveHost(HostRestRep host, URI id) {
HostUpdateParam param = new HostUpdateParam();
param.setCluster(id);
client.hosts().update(host.getId(), param);
}
use of com.emc.storageos.model.host.HostUpdateParam in project coprhd-controller by CoprHD.
the class HostClusters method addHosts.
@FlashException(referrer = { "editHosts" })
public static void addHosts(String clusterId, @As(",") String[] ids) {
if (ids != null && ids.length > 0) {
for (String hostId : ids) {
HostUpdateParam hostUpdateParam = new HostUpdateParam();
hostUpdateParam.setCluster(uri(clusterId));
HostUtils.updateHost(uri(hostId), hostUpdateParam, false);
}
flash.success(MessagesUtils.get(ADDED_HOSTS));
}
editHosts(clusterId);
}
Aggregations