public interface RestAgentService
Modifier and Type | Method and Description |
---|---|
@NotNull RestAgent |
getAgentById(@NotNull javax.ws.rs.core.UriInfo uriInfo,
long agentId)
Retrieve an agent definition
|
@NotNull RestPageModel<RestAgent> |
getAgents(@NotNull javax.ws.rs.core.UriInfo uriInfo)
Retrieve all agents on the bamboo server
|
@NotNull RestAgent |
updateAgent(@NotNull javax.ws.rs.core.UriInfo uriInfo,
long agentId,
@NotNull RestAgent restAgent)
Update an agent
|
@NotNull @NotNull RestPageModel<RestAgent> getAgents(@NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- Object that provides access to information of http requestNotAuthorizedException
- if the current user lacks restricted administration permission to get agents@NotNull @NotNull RestAgent getAgentById(@NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo, long agentId)
uriInfo
- Object that provides access to information of http requestagentId
- Id of agentNotAuthorizedException
- if the current user lacks restricted administration permission to get agentsNotFoundException
- if no agent exists with an id equal to agentId@NotNull @NotNull RestAgent updateAgent(@NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo, long agentId, @NotNull @NotNull RestAgent restAgent) throws WebValidationException
uriInfo
- Object that provides access to information of http requestagentId
- Id of the agent to be updatedrestAgent
- The updated agent definitionWebValidationException
- If the agent definition is invalidNotFoundException
- if no agent exists with an id equal to agentIdCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.