@Singleton public class AgentResource extends Object
Constructor and Description |
---|
AgentResource(AgentCapabilityService agentCapabilityService,
AgentExecutableService agentExecutableService,
AgentManager agentManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
RestHelperWrapper restHelperWrapper) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createAgentCapability(long agentId,
RestCapability createCapabilityRequest) |
javax.ws.rs.core.Response |
deleteAgent(long agentId) |
javax.ws.rs.core.Response |
deleteAgentCapability(long agentId,
@NotNull String capabilityKey) |
javax.ws.rs.core.Response |
deleteAllAgentCapabilities(long agentId) |
javax.ws.rs.core.Response |
disableAgent(long agentId) |
javax.ws.rs.core.Response |
enableAgent(long agentId) |
List<RestCapability> |
getAgentCapabilities(long agentId,
boolean includeShared) |
RestAgentInformation |
getAgentInformation(String expandParam,
boolean includeShared,
long agentId,
javax.ws.rs.core.UriInfo uriInfo) |
List<RestBuildAgent> |
getAgents(Boolean online) |
javax.ws.rs.core.Response |
getAgentStatus(long agentId) |
List<RestBuildAgent> |
getRemoteAgents(Boolean online) |
javax.ws.rs.core.Response |
updateAgentCapability(long agentId,
String capabilityKey,
RestRemoteAgentCapability updateCapabilityRequest) |
@Inject public AgentResource(AgentCapabilityService agentCapabilityService, AgentExecutableService agentExecutableService, AgentManager agentManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, RestHelperWrapper restHelperWrapper)
public List<RestBuildAgent> getAgents(Boolean online)
public RestAgentInformation getAgentInformation(String expandParam, boolean includeShared, long agentId, @Context javax.ws.rs.core.UriInfo uriInfo)
public List<RestBuildAgent> getRemoteAgents(Boolean online)
public javax.ws.rs.core.Response getAgentStatus(long agentId) throws org.acegisecurity.AccessDeniedException
org.acegisecurity.AccessDeniedException
public javax.ws.rs.core.Response enableAgent(long agentId) throws org.acegisecurity.AccessDeniedException, NotFoundException
org.acegisecurity.AccessDeniedException
NotFoundException
public javax.ws.rs.core.Response disableAgent(long agentId) throws org.acegisecurity.AccessDeniedException, NotFoundException
org.acegisecurity.AccessDeniedException
NotFoundException
public javax.ws.rs.core.Response deleteAgent(long agentId) throws org.acegisecurity.AccessDeniedException, WebValidationException
org.acegisecurity.AccessDeniedException
WebValidationException
public List<RestCapability> getAgentCapabilities(long agentId, boolean includeShared)
public javax.ws.rs.core.Response createAgentCapability(long agentId, RestCapability createCapabilityRequest) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response updateAgentCapability(long agentId, String capabilityKey, RestRemoteAgentCapability updateCapabilityRequest) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response deleteAgentCapability(long agentId, @NotNull @NotNull String capabilityKey) throws NotFoundException
NotFoundException
public javax.ws.rs.core.Response deleteAllAgentCapabilities(long agentId) throws NotFoundException
NotFoundException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.