Search in sources :

Example 1 with SnapCreateParam

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

the class VNXeApiClient method createSnap.

/**
 * Create snapshot for VNX Unity
 *
 * @param resourceID
 *            lun or consistency group id
 * @param name
 *            snapshot name
 * @param isReadOnly
 * @return VNXeCommandJob
 */
public VNXeCommandJob createSnap(String resourceID, String name, Boolean isReadOnly) {
    _logger.info("creating snap for :" + resourceID);
    SnapCreateParam parm = new SnapCreateParam();
    parm.setStorageResource(new VNXeBase(resourceID));
    parm.setName(name);
    if (isReadOnly != null) {
        parm.setIsReadOnly(isReadOnly);
    }
    SnapRequests req = new SnapRequests(_khClient);
    return req.createSnap(parm);
}
Also used : VNXeBase(com.emc.storageos.vnxe.models.VNXeBase) SnapRequests(com.emc.storageos.vnxe.requests.SnapRequests) LunGroupSnapRequests(com.emc.storageos.vnxe.requests.LunGroupSnapRequests) FileSystemSnapRequests(com.emc.storageos.vnxe.requests.FileSystemSnapRequests) LunSnapRequests(com.emc.storageos.vnxe.requests.LunSnapRequests) SnapCreateParam(com.emc.storageos.vnxe.models.SnapCreateParam) LunSnapCreateParam(com.emc.storageos.vnxe.models.LunSnapCreateParam) FileSystemSnapCreateParam(com.emc.storageos.vnxe.models.FileSystemSnapCreateParam)

Aggregations

FileSystemSnapCreateParam (com.emc.storageos.vnxe.models.FileSystemSnapCreateParam)1 LunSnapCreateParam (com.emc.storageos.vnxe.models.LunSnapCreateParam)1 SnapCreateParam (com.emc.storageos.vnxe.models.SnapCreateParam)1 VNXeBase (com.emc.storageos.vnxe.models.VNXeBase)1 FileSystemSnapRequests (com.emc.storageos.vnxe.requests.FileSystemSnapRequests)1 LunGroupSnapRequests (com.emc.storageos.vnxe.requests.LunGroupSnapRequests)1 LunSnapRequests (com.emc.storageos.vnxe.requests.LunSnapRequests)1 SnapRequests (com.emc.storageos.vnxe.requests.SnapRequests)1