use of com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam in project coprhd-controller by CoprHD.
the class ResynchronizeSnapshotForApplication method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupSnapshotOperationParam input = new VolumeGroupSnapshotOperationParam();
input.setSnapshots(snapshots);
input.setPartial(true);
TaskList taskList = getClient().application().resynchronizeApplicationSnapshot(applicationId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam in project coprhd-controller by CoprHD.
the class CreateVplexVolumeFromAppSnapshot method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupSnapshotOperationParam input = new VolumeGroupSnapshotOperationParam();
input.setCopySetName(copySetName);
input.setSubGroups(new ArrayList<String>(subGroups));
TaskList taskList = getClient().application().exposeApplicationSnapshot(applicationId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam in project coprhd-controller by CoprHD.
the class RestoreSnapshotForApplication method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupSnapshotOperationParam input = new VolumeGroupSnapshotOperationParam();
input.setSnapshots(snapshots);
input.setPartial(true);
TaskList taskList = getClient().application().restoreApplicationSnapshot(applicationId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam in project coprhd-controller by CoprHD.
the class DeleteSnapshotForApplication method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupSnapshotOperationParam input = new VolumeGroupSnapshotOperationParam();
input.setPartial(true);
input.setSnapshots(snapshots);
TaskList taskList = getClient().application().deactivateApplicationSnapshot(applicationId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
Aggregations