Search in sources :

Example 1 with LunSnapCreateParam

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

the class VNXeApiClient method createLunGroupSnap.

/**
 * Create lun snapshot
 *
 * @param lunID
 *            lun id
 * @param name
 *            snapshot name
 * @return VNXeCommandJob
 */
public VNXeCommandJob createLunGroupSnap(String lunGroupID, String name) {
    _logger.info("creating lun group snap:" + lunGroupID);
    LunSnapCreateParam parm = new LunSnapCreateParam();
    VNXeBase resource = new VNXeBase(lunGroupID);
    parm.setStorageResource(resource);
    parm.setName(name);
    LunGroupSnapRequests req = new LunGroupSnapRequests(_khClient);
    return req.createLunGroupSnap(parm);
}
Also used : LunGroupSnapRequests(com.emc.storageos.vnxe.requests.LunGroupSnapRequests) VNXeBase(com.emc.storageos.vnxe.models.VNXeBase) LunSnapCreateParam(com.emc.storageos.vnxe.models.LunSnapCreateParam)

Example 2 with LunSnapCreateParam

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

the class VNXeApiClient method createLunSnap.

/**
 * Create lun snapshot
 *
 * @param lunID
 *            lun id
 * @param name
 *            snapshot name
 * @return VNXeCommandJob
 */
public VNXeCommandJob createLunSnap(String lunID, String name) {
    _logger.info("creating lun snap:" + lunID);
    LunSnapCreateParam parm = new LunSnapCreateParam();
    parm.setStorageResource(new VNXeBase(lunID));
    parm.setName(name);
    LunSnapRequests req = new LunSnapRequests(_khClient);
    return req.createLunSnap(parm);
}
Also used : VNXeBase(com.emc.storageos.vnxe.models.VNXeBase) LunSnapRequests(com.emc.storageos.vnxe.requests.LunSnapRequests) LunSnapCreateParam(com.emc.storageos.vnxe.models.LunSnapCreateParam)

Aggregations

LunSnapCreateParam (com.emc.storageos.vnxe.models.LunSnapCreateParam)2 VNXeBase (com.emc.storageos.vnxe.models.VNXeBase)2 LunGroupSnapRequests (com.emc.storageos.vnxe.requests.LunGroupSnapRequests)1 LunSnapRequests (com.emc.storageos.vnxe.requests.LunSnapRequests)1