@Singleton public class AgentAssignmentResource extends Object
Constructor and Description |
---|
AgentAssignmentResource(AgentAssignmentService agentAssignmentService,
AgentManager agentManager,
DeploymentProjectService deploymentProjectService,
ElasticImageConfigurationManager elasticImageConfigurationManager,
EnvironmentService environmentService,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
CachedPlanManager cachedPlanManager,
PlanRestService planRestService,
ProjectManager projectManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addAgentAssignment(String executorType,
long executorId,
String executableType,
long entityId)
Dedicate agent or image.
|
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) |
public AgentAssignmentResource(AgentAssignmentService agentAssignmentService, AgentManager agentManager, DeploymentProjectService deploymentProjectService, ElasticImageConfigurationManager elasticImageConfigurationManager, EnvironmentService environmentService, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, CachedPlanManager cachedPlanManager, PlanRestService planRestService, ProjectManager projectManager)
public List<RestDedicatedAgent> getAgentAssignments(String type, long executorId, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response addAgentAssignment(String executorType, long executorId, String executableType, long entityId) throws WebValidationException
executorType
- should be AGENT or IMAGEexecutorId
- executor id. Id of agent or elastic image.executableType
- should be PROJECT, PLAN, JOB, ENVIRONMENT, DEPLOYMENT_PROJECTentityId
- entity id. Identifier of project, plan, job, deployment project or environment.WebValidationException
public javax.ws.rs.core.Response removeAssignment(String executorType, long executorId, String executableType, long entityId) throws WebValidationException
executorType
- should be AGENT or IMAGEexecutorId
- executor idexecutableType
- should be PROJECT, PLAN, JOB, ENVIRONMENT, DEPLOYMENT_PROJECTentityId
- entity idWebValidationException
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
WebValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.