Returns a list of snapshots.

@return
177702
@Path("version")
    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public Response version() {
        try {
            InputStream is = getClass().getResourceAsStream("/application.properties");
            Properties props = new Properties();
            props.load(is);
            String version = props.get("version").toString();
            String buildNumber = props.get("buildNumber").toString();
            return Response.ok().entity(
                "{\"version\":\"" + version +
                "\",\"build\":\"" + buildNumber + "\"}").build();
        } catch (IOException e) {
            //should never happen
            throw new RuntimeException(e);
        }
    }
44674
private CompletableFuture<Snapshot> takeSnapshots() {
    ComposableFuture<Snapshot> future = new ComposableFuture<>();
    stateContext.execute(() -> {
      try {
        future.complete(snapshot());
      } catch (Exception e) {
        future.completeExceptionally(e);
      }
    });
    return future;
  }
1257421
public List<DataSlice> getPersistentData() {
    List<DataSlice> slices = new ArrayList<DataSlice>(1);
    slices.add(new DataSlice(schema.toByteArray()));
    return slices;
  }
281108
def snapshot_list(self):
        '''
        
        '''
        NO_SNAPSHOTS_TAKEN = 'No snapshots have been taken yet!'
        output = self._run_vagrant_command(['snapshot', 'list'])
        if NO_SNAPSHOTS_TAKEN in output:
            return []
        else:
            return output.splitlines()
210859
def get_snapshots(self, si, logger, vm_uuid):
        
        vm = self.pyvmomi_service.find_by_uuid(si, vm_uuid)
        logger.info("Get snapshots")
        snapshots = SnapshotRetriever.get_vm_snapshots(vm)

        return snapshots.keys()
42465
public List<T> getList() {
    final ArrayList<T> list = new ArrayList<T>();
    for (final Entry<T, AtomicInteger> e : this.map.entrySet()) {
      for (int i = 0; i < e.getValue().get(); i++) {
        list.add(e.getKey());
      }
    }
    return list;
  }
236967
@GET
    @Produces(MediaType.APPLICATION_JSON)
    public Response list(@QueryParam("host") String host,
                         @QueryParam("storeId") String storeId,
                         @QueryParam("status") SnapshotStatus status) {
        try {
            List<Snapshot> snapshots = listSnapshots(host, storeId, status);

            List<SnapshotSummary> summaries = new ArrayList<>(snapshots.size());
            for (Snapshot snapshot : snapshots) {
                summaries.add(createSnapshotSummary(snapshot));
            }

            log.debug("returning {}", snapshots);
            return Response.ok()
                           .entity(new GetSnapshotListBridgeResult(summaries))
                           .build();
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
            return Response.serverError()
                           .entity(new ResponseDetails(ex.getMessage()))
                           .build();
        }
    }
1011244
public java.util.List<DBInstance> getDBInstances() {
        if (dBInstances == null) {
            dBInstances = new com.amazonaws.internal.SdkInternalList<DBInstance>();
        }
        return dBInstances;
    }
906421
def snapshots(self):
        
        self.connection._check_login()
        response = self.connection._do_get("{}/{}".format(self.connection._api_url, "types/Volume/instances")).json()
        all_volumes_snapshot = []
        for volume in response:
            if volume['volumeType'] == 'Snapshot':
                all_volumes_snapshot.append(
                    Volume.from_dict(volume)
            )
        return all_volumes_snapshot
836798
public List<T> toList() {
        final List<T> results = new ArrayList<T>();
        try {
            while (wrapped.hasNext()) {
                results.add(next());
            }
        } finally {
            wrapped.close();
        }
        return results;
    }
152043
public List<File> getAllFiles() {
		List<File> files = new ArrayList<File>();
		collectFiles(folder, files);
		Collections.sort(files, LastModifiedFileComparator.INSTANCE);
		return files;
	}
729642
public List<File> findNRecentSnapshots(int n) throws IOException {
        List<File> files = Util.sortDataDir(snapDir.listFiles(), "snapshot", false);
        int i = 0;
        List<File> list = new ArrayList<File>();
        for (File f: files) {
            if (i==n)
                break;
            i++;
            list.add(f);
        }
        return list;
    }
1264106
public java.util.List<LifecycleHook> getLifecycleHooks() {
        if (lifecycleHooks == null) {
            lifecycleHooks = new com.amazonaws.internal.SdkInternalList<LifecycleHook>();
        }
        return lifecycleHooks;
    }
309893
public java.util.List<String> getTagKeys() {
        if (tagKeys == null) {
            tagKeys = new com.ibm.cloud.objectstorage.internal.SdkInternalList<String>();
        }
        return tagKeys;
    }
1114353
public java.util.List<FileShareInfo> getFileShareInfoList() {
        if (fileShareInfoList == null) {
            fileShareInfoList = new com.amazonaws.internal.SdkInternalList<FileShareInfo>();
        }
        return fileShareInfoList;
    }
142822
public java.util.List<InstanceProfile> getInstanceProfiles() {
        if (instanceProfiles == null) {
            instanceProfiles = new com.amazonaws.internal.SdkInternalList<InstanceProfile>();
        }
        return instanceProfiles;
    }
571724
List<QueryDocumentSnapshot> toList() {
    List<QueryDocumentSnapshot> documents = new ArrayList<>(size());
    for (QueryDocumentSnapshot document : this) {
      documents.add(document);
    }
    return documents;
  }