Class JobAgentAssignmentResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.plan.stage.job.assignment.JobAgentAssignmentResource
@Path("config/job/{jobKey}/agent-assignment")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class JobAgentAssignmentResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionJobAgentAssignmentResource(AgentAssignmentService agentAssignmentService, AgentManager agentManager, AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, ElasticImageConfigurationManager elasticImageConfigurationManager, EphemeralAgentsService ephemeralAgentsService, com.atlassian.sal.api.message.I18nResolver i18nResolver, com.atlassian.event.api.EventPublisher eventPublisher, InputParser inputParser, CachedPlanManager planManager) -
Method Summary
Modifier and TypeMethodDescriptionaddAgentAssignmentForJob(String jobKeyString, Map<String, String> agentAssignmentKey) findAssignedAgentsByJob(String jobKeyString) jakarta.ws.rs.core.ResponsefindPossibleAgentsForJob(String jobKeyString, @Nullable String searchTerm, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.ResponseremoveAgentAssignmentFromJob(String jobKeyString, String executorKey)
-
Constructor Details
-
JobAgentAssignmentResource
@Inject public JobAgentAssignmentResource(AgentAssignmentService agentAssignmentService, AgentManager agentManager, AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, ElasticImageConfigurationManager elasticImageConfigurationManager, EphemeralAgentsService ephemeralAgentsService, com.atlassian.sal.api.message.I18nResolver i18nResolver, com.atlassian.event.api.EventPublisher eventPublisher, InputParser inputParser, CachedPlanManager planManager)
-
-
Method Details
-
findAssignedAgentsByJob
@GET public List<RestAgentAssignmentExecutorDetails> findAssignedAgentsByJob(@PathParam("jobKey") String jobKeyString) throws WebValidationException - Throws:
WebValidationException
-
findPossibleAgentsForJob
@GET @Path("possible-agent-assignment") public jakarta.ws.rs.core.Response findPossibleAgentsForJob(@PathParam("jobKey") String jobKeyString, @Nullable @QueryParam("searchTerm") @Nullable String searchTerm, @Context jakarta.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
addAgentAssignmentForJob
@POST public RestAgentAssignmentExecutorDetails addAgentAssignmentForJob(@PathParam("jobKey") String jobKeyString, Map<String, String> agentAssignmentKey) throws WebValidationException- Throws:
WebValidationException
-
removeAgentAssignmentFromJob
@DELETE @Path("/{executorKey}") public jakarta.ws.rs.core.Response removeAgentAssignmentFromJob(@PathParam("jobKey") String jobKeyString, @PathParam("executorKey") String executorKey) throws WebValidationException - Throws:
WebValidationException
-