Class AgentAssignmentResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.resource.AgentAssignmentResource
-
@Singleton public class AgentAssignmentResource extends Object
-
-
Constructor Summary
Constructors Constructor Description AgentAssignmentResource(AgentAssignmentService agentAssignmentService, AgentManager agentManager, DeploymentProjectService deploymentProjectService, ElasticImageConfigurationManager elasticImageConfigurationManager, EnvironmentService environmentService, EphemeralAgentsService ephemeralAgentsService, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, CachedPlanManager cachedPlanManager, PlanRestService planRestService, ProjectManager projectManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
addAgentAssignment(String executorType, long executorId, String executableType, long entityId)
List<RestDedicatedAgent>
getAgentAssignments(String type, long executorId, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders httpHeaders)
javax.ws.rs.core.Response
removeAssignment(String executorType, long executorId, String executableType, long entityId)
SearchResultsList
searchEntityForAgent(String type, long executorId, String entityType, String searchTerm, javax.ws.rs.core.UriInfo uriInfo, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
-
-
Constructor Detail
-
AgentAssignmentResource
public AgentAssignmentResource(AgentAssignmentService agentAssignmentService, AgentManager agentManager, DeploymentProjectService deploymentProjectService, ElasticImageConfigurationManager elasticImageConfigurationManager, EnvironmentService environmentService, EphemeralAgentsService ephemeralAgentsService, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, CachedPlanManager cachedPlanManager, PlanRestService planRestService, ProjectManager projectManager)
-
-
Method Detail
-
getAgentAssignments
public List<RestDedicatedAgent> getAgentAssignments(String type, long executorId, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders) throws WebValidationException
- Throws:
WebValidationException
-
addAgentAssignment
public javax.ws.rs.core.Response addAgentAssignment(String executorType, long executorId, String executableType, long entityId) throws WebValidationException
- Throws:
WebValidationException
-
removeAssignment
public javax.ws.rs.core.Response removeAssignment(String executorType, long executorId, String executableType, long entityId) throws WebValidationException
- Throws:
WebValidationException
-
searchEntityForAgent
public SearchResultsList searchEntityForAgent(String type, long executorId, String entityType, String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws WebValidationException
- Throws:
WebValidationException
-
-