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
ConstructorsConstructorDescriptionAgentAssignmentResource(AgentAssignmentService agentAssignmentService, AgentManager agentManager, CachedDeploymentProjectService cachedDeploymentProjectService, CachedEnvironmentService cachedEnvironmentService, ElasticImageConfigurationManager elasticImageConfigurationManager, 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 TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddAgentAssignment(String executorType, long executorId, String executableType, long entityId) getAgentAssignments(String type, long executorId, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.ResponseremoveAssignment(String executorType, long executorId, String executableType, long entityId) searchEntityForAgent(String type, long executorId, String entityType, String searchTerm, jakarta.ws.rs.core.UriInfo uriInfo)
-
Constructor Details
-
AgentAssignmentResource
@Inject public AgentAssignmentResource(AgentAssignmentService agentAssignmentService, AgentManager agentManager, CachedDeploymentProjectService cachedDeploymentProjectService, CachedEnvironmentService cachedEnvironmentService, ElasticImageConfigurationManager elasticImageConfigurationManager, 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 jakarta.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
addAgentAssignment
@POST public jakarta.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 jakarta.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 jakarta.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-