Search in sources :

Example 1 with HostLunModifyParam

use of com.emc.storageos.vnxe.models.HostLunModifyParam in project coprhd-controller by CoprHD.

the class VNXeApiClient method modifyHostLunHlu.

/**
 * Modify host lun HLU
 *
 * @param hostId Host Id
 * @param hostLunId HostLun Id
 * @param hlu The new hlu value
 */
public void modifyHostLunHlu(String hostId, String hostLunId, int hlu) {
    HostRequest req = new HostRequest(_khClient, hostId);
    ModifyHostLUNsParam param = new ModifyHostLUNsParam();
    HostLunModifyParam hostLunParam = new HostLunModifyParam();
    hostLunParam.setHlu(hlu);
    VNXeBase hostLun = new VNXeBase(hostLunId);
    hostLunParam.setHostLun(hostLun);
    List<HostLunModifyParam> parmList = new ArrayList<HostLunModifyParam>();
    parmList.add(hostLunParam);
    param.setHostLunModifyList(parmList);
    req.modifyHostLun(param);
}
Also used : HostLunModifyParam(com.emc.storageos.vnxe.models.HostLunModifyParam) VNXeBase(com.emc.storageos.vnxe.models.VNXeBase) ArrayList(java.util.ArrayList) ModifyHostLUNsParam(com.emc.storageos.vnxe.models.ModifyHostLUNsParam) HostRequest(com.emc.storageos.vnxe.requests.HostRequest) DeleteHostRequest(com.emc.storageos.vnxe.requests.DeleteHostRequest)

Aggregations

HostLunModifyParam (com.emc.storageos.vnxe.models.HostLunModifyParam)1 ModifyHostLUNsParam (com.emc.storageos.vnxe.models.ModifyHostLUNsParam)1 VNXeBase (com.emc.storageos.vnxe.models.VNXeBase)1 DeleteHostRequest (com.emc.storageos.vnxe.requests.DeleteHostRequest)1 HostRequest (com.emc.storageos.vnxe.requests.HostRequest)1 ArrayList (java.util.ArrayList)1