public class VersionEndpoints extends Object
| Constructor and Description |
|---|
VersionEndpoints() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<EmptyResponse> |
addFilesToVersion(String versionId,
List<File> files)
Add files to version
|
CompletableFuture<EmptyResponse> |
addFilesToVersion(String versionId,
Map<String,InputStream> files)
Add files to a version.
|
CompletableFuture<ProjectVersion> |
createProjectVersion(CreateVersion.CreateVersionRequest request)
Creates a new version for a project.
|
CompletableFuture<EmptyResponse> |
deleteProjectVersion(String versionId)
Deletes a version based on the version id
|
VersionFilesEndpoints |
files()
Returns the version files endpoints.
|
CompletableFuture<List<ProjectVersion>> |
getProjectVersions(String slug,
GetProjectVersions.GetProjectVersionsRequest requestObject)
Fetches a list of versions for a project with the given slug, filtered
by the given conditions.
|
CompletableFuture<List<ProjectVersion>> |
getVersion(List<String> versionIds)
Fetches multiple versions based on the version ids
|
CompletableFuture<List<ProjectVersion>> |
getVersion(String... versionIds)
Fetches multiple versions based on the version ids
|
CompletableFuture<ProjectVersion> |
getVersion(String versionId)
Fetches a version based on the version id
|
CompletableFuture<ProjectVersion> |
getVersionByNumber(String projectSlug,
String versionNumber)
Fetches a version based on the project slug and version number
|
CompletableFuture<ProjectVersion> |
modifyProjectVersion(String versionId,
ModifyVersion.ModifyVersionRequest request)
Modifies a version based on the version id
|
CompletableFuture<EmptyResponse> |
scheduleVersion(String versionId,
ScheduleVersion.ScheduleVersionRequest request)
Schedules a version.
|
public VersionFilesEndpoints files()
public CompletableFuture<List<ProjectVersion>> getProjectVersions(String slug, GetProjectVersions.GetProjectVersionsRequest requestObject)
slug - - The slug of the project to fetch versions for.requestObject - - The request object to use for filteringCompletableFuture that will return a list of versionspublic CompletableFuture<ProjectVersion> getVersion(String versionId)
versionId - - The id of the version to fetchCompletableFuture that
will return a versionpublic CompletableFuture<ProjectVersion> getVersionByNumber(String projectSlug, String versionNumber)
public CompletableFuture<List<ProjectVersion>> getVersion(List<String> versionIds)
versionIds - - The ids of the versions to fetchCompletableFuture
that will return a list of versions in the same order as the ids.
Putting the same id multiple times will only return one version, but
the order will be preserved.getVersion(String[])public CompletableFuture<List<ProjectVersion>> getVersion(String... versionIds)
versionIds - - The ids of the versions to fetchCompletableFuture
that will return a list of versions in the same order as the ids.
Putting the same id multiple times will only return one version, but
the order will be preserved.getVersion(List)public CompletableFuture<ProjectVersion> modifyProjectVersion(String versionId, ModifyVersion.ModifyVersionRequest request)
versionId - - The id of the version to modifyrequest - - The request object to use for modifyingCompletableFuture that
will return the modified version objectpublic CompletableFuture<EmptyResponse> deleteProjectVersion(String versionId)
versionId - - The id of the version to deleteCompletableFuture that
will return an empty response when the version has been deletedpublic CompletableFuture<ProjectVersion> createProjectVersion(CreateVersion.CreateVersionRequest request)
request - - The request object to use for creatingCompletableFuture that
will return the created version object once it has been createdpublic CompletableFuture<EmptyResponse> addFilesToVersion(String versionId, Map<String,InputStream> files)
versionId - - The id of the version to add files tofiles - - A Map of file names to InputStreams which
represent the file content.CompletableFuture that
will return an empty response when the files have been addedpublic CompletableFuture<EmptyResponse> addFilesToVersion(String versionId, List<File> files) throws FileNotFoundException
versionId - - The id of the version to add files tofiles - - A List of Files to add to the versionCompletableFuture that
will return an empty response when the files have been addedFileNotFoundException - - If a file in the list does not existpublic CompletableFuture<EmptyResponse> scheduleVersion(String versionId, ScheduleVersion.ScheduleVersionRequest request)
versionId - - The id of the version to scheduleCompletableFuture that
will return an empty response when the version has been scheduledCopyright © 2026. All rights reserved.