use of org.ovirt.engine.core.vdsbroker.vdsbroker.ImageSizeReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method diskSizeExtend.
@Override
public ImageSizeReturn diskSizeExtend(String vmId, Map<String, String> diskParams, String newSize) {
JsonRpcRequest request = new RequestBuilder("VM.diskSizeExtend").withParameter("vmID", vmId).withParameter("driveSpecs", diskParams).withParameter("newSize", newSize).build();
Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("size");
return new ImageSizeReturn(response);
}
Aggregations