use of com.emc.storageos.model.application.VolumeGroupUpdateParam in project coprhd-controller by CoprHD.
the class AddClustersToMobilityGroup method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupUpdateParam input = new VolumeGroupUpdateParam();
input.setAddClustersList(clusterIds);
TaskList taskList = getClient().application().updateApplication(mobilityGroupId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.storageos.model.application.VolumeGroupUpdateParam in project coprhd-controller by CoprHD.
the class AddVolumesToMobilityGroup method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupUpdateParam input = new VolumeGroupUpdateParam();
VolumeGroupVolumeList addVolumesList = new VolumeGroupVolumeList();
addVolumesList.setVolumes(volumeIds);
input.setAddVolumesList(addVolumesList);
TaskList taskList = getClient().application().updateApplication(mobilityGroupId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.storageos.model.application.VolumeGroupUpdateParam in project coprhd-controller by CoprHD.
the class RemoveClustersFromMobilityGroup method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupUpdateParam input = new VolumeGroupUpdateParam();
input.setRemoveClustersList(clusterIds);
TaskList taskList = getClient().application().updateApplication(mobilityGroupId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.storageos.model.application.VolumeGroupUpdateParam in project coprhd-controller by CoprHD.
the class RemoveHostsFromMobilityGroup method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupUpdateParam input = new VolumeGroupUpdateParam();
input.setRemoveHostsList(hostIds);
TaskList taskList = getClient().application().updateApplication(mobilityGroupId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.storageos.model.application.VolumeGroupUpdateParam in project coprhd-controller by CoprHD.
the class RemoveVolumesFromMobilityGroup method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupUpdateParam input = new VolumeGroupUpdateParam();
VolumeGroupVolumeList removeVolumesList = new VolumeGroupVolumeList();
removeVolumesList.setVolumes(volumeIds);
input.setRemoveVolumesList(removeVolumesList);
TaskList taskList = getClient().application().updateApplication(mobilityGroupId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
Aggregations