Search in sources :

Example 16 with CopiesParam

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);
}
Also used : Copy(com.emc.storageos.model.block.Copy) CopiesParam(com.emc.storageos.model.block.CopiesParam)

Aggregations

CopiesParam (com.emc.storageos.model.block.CopiesParam)16 Copy (com.emc.storageos.model.block.Copy)12 VolumeRestRep (com.emc.storageos.model.block.VolumeRestRep)5 ViPRCoreClient (com.emc.vipr.client.ViPRCoreClient)4 FlashException (controllers.util.FlashException)4 UnManagedVolumeRestRep (com.emc.storageos.model.block.UnManagedVolumeRestRep)1 ServiceErrorException (com.emc.vipr.client.exceptions.ServiceErrorException)1 URI (java.net.URI)1 ArrayList (java.util.ArrayList)1 Util (play.mvc.Util)1 BourneUtil (util.BourneUtil)1