Search in sources :

Example 1 with VolumeGroupSnapshotSessionRestoreParam

use of com.emc.storageos.model.application.VolumeGroupSnapshotSessionRestoreParam in project coprhd-controller by CoprHD.

the class RestoreSnapshotSessionForApplication method doExecute.

@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
    VolumeGroupSnapshotSessionRestoreParam input = new VolumeGroupSnapshotSessionRestoreParam();
    input.setSnapshotSessions(snapSessions);
    input.setPartial(true);
    TaskList taskList = getClient().application().restoreApplicationSnapshotSession(applicationId, input);
    return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
Also used : VolumeGroupSnapshotSessionRestoreParam(com.emc.storageos.model.application.VolumeGroupSnapshotSessionRestoreParam) WaitForTasks(com.emc.sa.service.vipr.tasks.WaitForTasks) Tasks(com.emc.vipr.client.Tasks) TaskList(com.emc.storageos.model.TaskList)

Aggregations

WaitForTasks (com.emc.sa.service.vipr.tasks.WaitForTasks)1 TaskList (com.emc.storageos.model.TaskList)1 VolumeGroupSnapshotSessionRestoreParam (com.emc.storageos.model.application.VolumeGroupSnapshotSessionRestoreParam)1 Tasks (com.emc.vipr.client.Tasks)1