use of com.emc.storageos.model.block.CopiesParam in project coprhd-controller by CoprHD.
the class UpdateBlockConsistencyGroupAccessMode method doExecute.
@Override
protected Tasks<BlockConsistencyGroupRestRep> doExecute() throws Exception {
Copy copy = new Copy();
copy.setType(type);
copy.setCopyID(failoverTarget);
copy.setAccessMode(accessMode);
CopiesParam param = new CopiesParam();
param.getCopies().add(copy);
return getClient().blockConsistencyGroups().updateCopyAccessMode(consistencyGroupId, param);
}
Aggregations