use of com.emc.storageos.vnxe.models.LunAddParam in project coprhd-controller by CoprHD.
the class VNXeApiClient method deleteLunsFromConsistencyGroup.
/**
* Delete luns from consistency group
*
* @param cgId
* @param luns
* @return
*/
public VNXeCommandResult deleteLunsFromConsistencyGroup(String cgId, List<String> luns) {
LunGroupModifyParam param = new LunGroupModifyParam();
List<LunAddParam> lunDelete = new ArrayList<LunAddParam>();
for (String lunId : luns) {
VNXeBase lun = new VNXeBase(lunId);
LunAddParam lunAdd = new LunAddParam();
lunAdd.setLun(lun);
lunDelete.add(lunAdd);
}
param.setLunDelete(lunDelete);
ConsistencyGroupRequests req = new ConsistencyGroupRequests(_khClient);
return req.modifyConsistencyGroupSync(cgId, param);
}
Aggregations