Search in sources :

Example 1 with VolumeGroupFullCopyCreateParam

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

the class CreateCloneOfApplication method doExecute.

@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
    VolumeGroupFullCopyCreateParam input = new VolumeGroupFullCopyCreateParam();
    input.setName(name);
    input.setCreateInactive(false);
    input.setPartial(true);
    input.setVolumes(volumeIds);
    TaskList taskList = getClient().application().createFullCopyOfApplication(applicationId, input);
    return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
Also used : VolumeGroupFullCopyCreateParam(com.emc.storageos.model.application.VolumeGroupFullCopyCreateParam) 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 VolumeGroupFullCopyCreateParam (com.emc.storageos.model.application.VolumeGroupFullCopyCreateParam)1 Tasks (com.emc.vipr.client.Tasks)1