Search in sources :

Example 1 with VolumeGroupSnapshotCreateParam

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

the class CreateSnapshotForApplication method doExecute.

@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
    VolumeGroupSnapshotCreateParam input = new VolumeGroupSnapshotCreateParam();
    input.setName(name);
    input.setVolumes(volumes);
    input.setPartial(true);
    input.setReadOnly(readOnly);
    TaskList taskList = getClient().application().createSnapshotOfApplication(applicationId, input);
    return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
Also used : WaitForTasks(com.emc.sa.service.vipr.tasks.WaitForTasks) Tasks(com.emc.vipr.client.Tasks) TaskList(com.emc.storageos.model.TaskList) VolumeGroupSnapshotCreateParam(com.emc.storageos.model.application.VolumeGroupSnapshotCreateParam)

Aggregations

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