@Override public Tuple<String, Iterable<Image>> listImages(String project, Map<Option, ?> options) { try { ImageList imageList = compute .images() .list(project) .setFilter(Option.FILTER.getString(options)) .setMaxResults(Option.MAX_RESULTS.getLong(options)) .setPageToken(Option.PAGE_TOKEN.getString(options)) .setFields(Option.FIELDS.getString(options)) .execute(); Iterable<Image> images = imageList.getItems(); return Tuple.of(imageList.getNextPageToken(), images); } catch (IOException ex) { throw translate(ex); } }
@Override public Tuple<String, Iterable<Image>> listImages(String project, Map<Option, ?> options) { try { ImageList imageList = compute.images() .list(project) .setFilter(Option.FILTER.getString(options)) .setMaxResults(Option.MAX_RESULTS.getLong(options)) .setPageToken(Option.PAGE_TOKEN.getString(options)) .setFields(Option.FIELDS.getString(options)) .execute(); Iterable<Image> images = imageList.getItems(); return Tuple.of(imageList.getNextPageToken(), images); } catch (IOException ex) { throw translate(ex); } }