@ExperimentalApi public class EnvironmentRequirementResource extends Object
Modifier and Type | Field and Description |
---|---|
static RestAgentSummary |
AGENT_SUMMARY |
static RestRequirement |
REQUIREMENT
Used for REST documentation generation.
|
static List<RestRequirement> |
REQUIREMENTS |
Constructor and Description |
---|
EnvironmentRequirementResource(DeploymentProjectService deploymentProjectService,
EnvironmentRequirementService environmentRequirementService,
EnvironmentService environmentService,
BambooPermissionManager bambooPermissionManager,
FeatureManager featureManager,
LinkService linkService) |
Modifier and Type | Method and Description |
---|---|
RestRequirement |
addRequirementForEnvironment(long environmentId,
RestRequirement requirement,
javax.ws.rs.core.UriInfo uriInfo)
Adds a requirement for a given environment.
|
RestAgentSummary |
getAgentMatchesForEnvironment(long environmentId,
javax.ws.rs.core.UriInfo uriInfo)
Gets a summary of the agents that are capable of running an environment, based of its requirements.
|
RestAgentSummary |
getDetailedAgentMatchesForEnvironment(long environmentId,
javax.ws.rs.core.UriInfo uriInfo)
Gets a detailed summary of the agents that are capable of running an environment, based of its requirements.
|
RestRequirement |
getRequirementForEnvironment(long environmentId,
long requirementId,
javax.ws.rs.core.UriInfo uriInfo)
Gets the details of a requirement for a given environment.
|
List<RestRequirement> |
getRequirementsForEnvironment(long environmentId)
Gets all the requirements of an environment.
|
javax.ws.rs.core.Response |
removeRequirementFromEnvironment(long environmentId,
long requirementId)
Removes a requirement for an environment.
|
RestRequirement |
updateRequirementForEnvironment(long environmentId,
long requirementId,
RestRequirement requirement,
javax.ws.rs.core.UriInfo uriInfo)
Updates a requirement for a given environment.
|
public static final RestRequirement REQUIREMENT
public static final List<RestRequirement> REQUIREMENTS
public static final RestAgentSummary AGENT_SUMMARY
public EnvironmentRequirementResource(DeploymentProjectService deploymentProjectService, EnvironmentRequirementService environmentRequirementService, EnvironmentService environmentService, BambooPermissionManager bambooPermissionManager, FeatureManager featureManager, LinkService linkService)
public RestAgentSummary getAgentMatchesForEnvironment(long environmentId, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
environmentId
- environment idRestAgentSummary
WebValidationException
public RestAgentSummary getDetailedAgentMatchesForEnvironment(long environmentId, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
environmentId
- environment idRestAgentSummary
WebValidationException
public List<RestRequirement> getRequirementsForEnvironment(long environmentId) throws WebValidationException
environmentId
- environment idRestRequirement
WebValidationException
public RestRequirement getRequirementForEnvironment(long environmentId, long requirementId, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
environmentId
- environment idrequirementId
- unique identifier of the requirement to get details ofRestRequirement
WebValidationException
public RestRequirement addRequirementForEnvironment(long environmentId, RestRequirement requirement, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
environmentId
- environment idrequirement
- a representation of the requirementRestRequirement
WebValidationException
public RestRequirement updateRequirementForEnvironment(long environmentId, long requirementId, RestRequirement requirement, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
environmentId
- environment idrequirementId
- requirement id of the requirement to updaterequirement
- an updated representation of the requirementRestRequirement
WebValidationException
public javax.ws.rs.core.Response removeRequirementFromEnvironment(long environmentId, long requirementId) throws WebValidationException
environmentId
- environment idrequirementId
- requirement id of the requirement to deleteResponse
an empty responseWebValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.