Class EnvironmentRequirementResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.deployments.environments.EnvironmentRequirementResource
@Path("deploy/environment/{environmentId}/requirement")
@Consumes("application/json")
@Produces("application/json")
@ExperimentalApi
public class EnvironmentRequirementResource
extends Object
Provides RESTful operations on deployment environment requirements.
- Since:
- 5.13
-
Constructor Summary
ConstructorDescriptionEnvironmentRequirementResource
(DeploymentProjectService deploymentProjectService, EnvironmentRequirementService environmentRequirementService, EnvironmentService environmentService, BambooPermissionManager bambooPermissionManager, FeatureManager featureManager, LinkService linkService) -
Method Summary
Modifier and TypeMethodDescriptionaddRequirementForEnvironment
(long environmentId, RestRequirement requirement, javax.ws.rs.core.UriInfo uriInfo) getAgentMatchesForEnvironment
(long environmentId, javax.ws.rs.core.UriInfo uriInfo) getDetailedAgentMatchesForEnvironment
(long environmentId, javax.ws.rs.core.UriInfo uriInfo) getRequirementForEnvironment
(long environmentId, long requirementId, javax.ws.rs.core.UriInfo uriInfo) getRequirementsForEnvironment
(long environmentId) javax.ws.rs.core.Response
removeRequirementFromEnvironment
(long environmentId, long requirementId) updateRequirementForEnvironment
(long environmentId, long requirementId, RestRequirement requirement, javax.ws.rs.core.UriInfo uriInfo)
-
Constructor Details
-
EnvironmentRequirementResource
@Inject public EnvironmentRequirementResource(DeploymentProjectService deploymentProjectService, EnvironmentRequirementService environmentRequirementService, EnvironmentService environmentService, BambooPermissionManager bambooPermissionManager, FeatureManager featureManager, LinkService linkService)
-
-
Method Details
-
getAgentMatchesForEnvironment
@GET @Path("summary") public RestAgentSummary getAgentMatchesForEnvironment(@PathParam("environmentId") long environmentId, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
getDetailedAgentMatchesForEnvironment
@GET @Path("detailedSummary") public RestAgentSummary getDetailedAgentMatchesForEnvironment(@PathParam("environmentId") long environmentId, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
getRequirementsForEnvironment
@GET public List<RestRequirement> getRequirementsForEnvironment(@PathParam("environmentId") long environmentId) throws WebValidationException - Throws:
WebValidationException
-
getRequirementForEnvironment
@GET @Path("{requirementId}") public RestRequirement getRequirementForEnvironment(@PathParam("environmentId") long environmentId, @PathParam("requirementId") long requirementId, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
addRequirementForEnvironment
@POST public RestRequirement addRequirementForEnvironment(@PathParam("environmentId") long environmentId, RestRequirement requirement, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
updateRequirementForEnvironment
@PUT @Path("{requirementId}") public RestRequirement updateRequirementForEnvironment(@PathParam("environmentId") long environmentId, @PathParam("requirementId") long requirementId, RestRequirement requirement, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
removeRequirementFromEnvironment
@DELETE @Path("{requirementId}") public javax.ws.rs.core.Response removeRequirementFromEnvironment(@PathParam("environmentId") long environmentId, @PathParam("requirementId") long requirementId) throws WebValidationException - Throws:
WebValidationException
-