use of org.apache.cloudstack.api.response.solidfire.ApiVolumeSnapshotDetailsResponse in project cloudstack by apache.
the class SolidFireIntegrationTestUtil method getSnapshotDetails.
public List<ApiVolumeSnapshotDetailsResponse> getSnapshotDetails(String snapshotUuid) {
SnapshotVO snapshot = snapshotDao.findByUuid(snapshotUuid);
List<SnapshotDetailsVO> snapshotDetails = snapshotDetailsDao.listDetails(snapshot.getId());
List<ApiVolumeSnapshotDetailsResponse> responses = new ArrayList<>();
if (snapshotDetails != null) {
for (SnapshotDetailsVO snapshotDetail : snapshotDetails) {
ApiVolumeSnapshotDetailsResponse response = new ApiVolumeSnapshotDetailsResponse(snapshotDetail.getResourceId(), snapshotDetail.getName(), snapshotDetail.getValue());
responses.add(response);
}
}
return responses;
}
Aggregations