@Singleton public class DeploymentVersionResource extends Object
Constructor and Description |
---|
DeploymentVersionResource(DeploymentVersionService deploymentVersionService,
com.atlassian.sal.api.message.I18nResolver i18nResolver) |
Modifier and Type | Method and Description |
---|---|
RestDeploymentVersionStatus |
getLatestVersionStatus(long deploymentVersionId)
Get current status of deployment version.
|
RestDeploymentVersionStatus |
updateVersionStatus(long deploymentVersionId,
String newStatus,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Update deployment version status.
|
public DeploymentVersionResource(DeploymentVersionService deploymentVersionService, com.atlassian.sal.api.message.I18nResolver i18nResolver)
public RestDeploymentVersionStatus getLatestVersionStatus(long deploymentVersionId) throws WebValidationException
deploymentVersionId
- deployment version idWebValidationException
public RestDeploymentVersionStatus updateVersionStatus(long deploymentVersionId, String newStatus, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws WebValidationException
deploymentVersionId
- deployment version idnewStatus
- deployment version status. Possible values: UNKNOWN, APPROVED, BROKEN, INCOMPLETEauthenticationContext
- authentication contextWebValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.