use of bio.terra.model.FileLoadModel in project jade-data-repo by DataBiosphere.
the class DataRepoFixtures method ingestFileLaunch.
public DataRepoResponse<JobModel> ingestFileLaunch(TestConfiguration.User user, String datasetId, String profileId, String sourceGsPath, String targetPath) throws Exception {
FileLoadModel fileLoadModel = new FileLoadModel().sourcePath(sourceGsPath).profileId(profileId).description(null).mimeType("application/octet-string").targetPath(targetPath);
String json = TestUtils.mapToJson(fileLoadModel);
return dataRepoClient.post(user, "/api/repository/v1/datasets/" + datasetId + "/files", json, JobModel.class);
}
Aggregations