use of com.emc.storageos.model.host.vcenter.VcenterDataCenterUpdate in project coprhd-controller by CoprHD.
the class VcenterDataCenterUtils method updateDataCenter.
public static VcenterDataCenterRestRep updateDataCenter(URI id, URI tenantId) {
VcenterDataCenterUpdate update = new VcenterDataCenterUpdate();
VcenterDataCenterRestRep dataCenter = getDataCenter(id);
if (dataCenter != null) {
update.setName(dataCenter.getName());
update.setTenant(tenantId);
return getViprClient().vcenterDataCenters().update(id, update);
}
return null;
}
Aggregations