@Override public Action resizeDroplet(Integer dropletId, String size) throws DigitalOceanException, RequestUnsuccessfulException { validateDropletId(dropletId); Object[] params = {dropletId}; DropletAction action = new DropletAction(ActionType.RESIZE); action.setSize(size); return (Action) perform(new ApiRequest(ApiAction.RESIZE_DROPLET, action, params)).getData(); }
@Override public Action resizeDroplet(Integer dropletId, String size) throws DigitalOceanException, RequestUnsuccessfulException { validateDropletId(dropletId); Object[] params = {dropletId}; DropletAction action = new DropletAction(ActionType.RESIZE); action.setSize(size); return (Action) perform(new ApiRequest(ApiAction.RESIZE_DROPLET, action, params)).getData(); }
@Override public Action resizeDroplet(Integer dropletId, String size, Boolean disk) throws DigitalOceanException, RequestUnsuccessfulException { validateDropletId(dropletId); Object[] params = {dropletId}; DropletAction action = new DropletAction(ActionType.RESIZE); action.setSize(size); action.setDisk(disk); return (Action) perform(new ApiRequest(ApiAction.RESIZE_DROPLET, action, params)).getData(); }
@Override public Action resizeDroplet(Integer dropletId, String size, Boolean disk) throws DigitalOceanException, RequestUnsuccessfulException { validateDropletId(dropletId); Object[] params = {dropletId}; DropletAction action = new DropletAction(ActionType.RESIZE); action.setSize(size); action.setDisk(disk); return (Action) perform(new ApiRequest(ApiAction.RESIZE_DROPLET, action, params)).getData(); }