Class AgentAssignmentResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.resource.AgentAssignmentResource
@Path("agent/assignment")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class AgentAssignmentResource
extends Object
-
Constructor Summary
ConstructorDescriptionAgentAssignmentResource
(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, RestAuthenticationContext restAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
addAgentAssignment
(String executorType, long executorId, String executableType, long entityId) getAgentAssignments
(String type, long executorId, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Response
removeAssignment
(String executorType, long executorId, String executableType, long entityId) searchEntityForAgent
(String type, long executorId, String entityType, String searchTerm, javax.ws.rs.core.UriInfo uriInfo)
-
Constructor Details
-
AgentAssignmentResource
@Inject 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, RestAuthenticationContext restAuthenticationContext)
-
-
Method Details
-
getAgentAssignments
@GET public List<RestDedicatedAgent> getAgentAssignments(@QueryParam("executorType") String type, @QueryParam("executorId") long executorId, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
addAgentAssignment
@POST public javax.ws.rs.core.Response addAgentAssignment(@QueryParam("executorType") String executorType, @QueryParam("executorId") long executorId, @QueryParam("assignmentType") String executableType, @QueryParam("entityId") long entityId) throws WebValidationException - Throws:
WebValidationException
-
removeAssignment
@DELETE public javax.ws.rs.core.Response removeAssignment(@QueryParam("executorType") String executorType, @QueryParam("executorId") long executorId, @QueryParam("assignmentType") String executableType, @QueryParam("entityId") long entityId) throws WebValidationException - Throws:
WebValidationException
-
searchEntityForAgent
@GET @Path("search") public SearchResultsList searchEntityForAgent(@QueryParam("executorType") String type, @QueryParam("executorId") long executorId, @QueryParam("entityType") String entityType, @QueryParam("searchTerm") String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-