Class DeploymentVersionResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.deployments.versions.DeploymentVersionResource
@Path("deploy/version")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class DeploymentVersionResource
extends Object
-
Constructor Summary
ConstructorDescriptionDeploymentVersionResource
(DeploymentVersionService deploymentVersionService, com.atlassian.sal.api.message.I18nResolver i18nResolver, DeploymentProjectPermissionsService deploymentProjectPermissionsService, RestAuthenticationContext restAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptiongetLatestVersionStatuses
(long deploymentVersionId) getVersionAndPlanResult
(long deploymentVersionId) updateVersionStatus
(long deploymentVersionId, String newStatus)
-
Constructor Details
-
DeploymentVersionResource
@Inject public DeploymentVersionResource(DeploymentVersionService deploymentVersionService, com.atlassian.sal.api.message.I18nResolver i18nResolver, DeploymentProjectPermissionsService deploymentProjectPermissionsService, RestAuthenticationContext restAuthenticationContext)
-
-
Method Details
-
getLatestVersionStatuses
@GET @Path("{deploymentVersionId}/status") public RestDeploymentVersionStatuses getLatestVersionStatuses(@PathParam("deploymentVersionId") long deploymentVersionId) -
updateVersionStatus
@POST @Path("{deploymentVersionId}/status/{newStatus}") public RestDeploymentVersionStatuses updateVersionStatus(@PathParam("deploymentVersionId") long deploymentVersionId, @PathParam("newStatus") String newStatus) throws WebValidationException - Throws:
WebValidationException
-
getVersionAndPlanResult
@GET @Path("{deploymentVersionId}/build-result") public RestDeploymentVersionAndPlanResult getVersionAndPlanResult(@PathParam("deploymentVersionId") long deploymentVersionId)
-