diff options
Diffstat (limited to 'hosted-api/src/main/java/ai/vespa/hosted/api/Submission.java')
-rw-r--r-- | hosted-api/src/main/java/ai/vespa/hosted/api/Submission.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/hosted-api/src/main/java/ai/vespa/hosted/api/Submission.java b/hosted-api/src/main/java/ai/vespa/hosted/api/Submission.java new file mode 100644 index 00000000000..f4cb90176da --- /dev/null +++ b/hosted-api/src/main/java/ai/vespa/hosted/api/Submission.java @@ -0,0 +1,38 @@ +// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package ai.vespa.hosted.api; + +import java.io.File; +import java.io.InputStream; +import java.nio.file.Path; + +/** + * A submission intended for hosted Vespa containing an application package with tests and meta data. + * + * @author jonmv + */ +public class Submission { + + private final String repository; + private final String branch; + private final String commit; + private final String authorEmail; + private final Path applicationZip; + private final Path applicationTestZip; + + public Submission(String repository, String branch, String commit, String authorEmail, Path applicationZip, Path applicationTestZip) { + this.repository = repository; + this.branch = branch; + this.commit = commit; + this.authorEmail = authorEmail; + this.applicationZip = applicationZip; + this.applicationTestZip = applicationTestZip; + } + + public String repository() { return repository; } + public String branch() { return branch; } + public String commit() { return commit; } + public String authorEmail() { return authorEmail; } + public Path applicationZip() { return applicationZip; } + public Path applicationTestZip() { return applicationTestZip; } + +} |