@Singleton public class DeploymentEnvironmentResource extends Object
Constructor and Description |
---|
DeploymentEnvironmentResource(AgentAssignmentService agentAssignmentService,
AgentManager agentManager,
EnvironmentService environmentService,
EnvironmentCustomConfigService environmentCustomConfigService,
DeploymentResultService deploymentResultService,
DeploymentProjectService deploymentProjectService,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
com.atlassian.event.api.EventPublisher eventPublisher,
ElasticImageConfigurationManager elasticImageConfigurationManager,
EnvironmentRequirementService environmentRequirementService,
VariableDefinitionManager variableDefinitionManager,
AdministrationConfigurationAccessor administrationConfigurationAccessor,
BambooPermissionManager bambooPermissionManager,
VariableConfigurationService variableConfigurationService,
AgentCapabilityService agentCapabilityService,
LinkService linkService) |
Modifier and Type | Method and Description |
---|---|
RestAgentAssignmentExecutorDetails |
addAgentAssignmentForEnvironment(long environmentId,
Map<String,String> agentAssignmentKey) |
javax.ws.rs.core.Response |
createEnvironmentVariable(Long environmentId,
@Nullable RestVariable variable) |
javax.ws.rs.core.Response |
deleteEnvironmentVariable(Long environmentId,
String variableName) |
List<RestAgentAssignmentExecutorDetails> |
findAssignedAgentsByEnvironment(long environmentId) |
javax.ws.rs.core.Response |
findPossibleAgentsForEnvironment(long environmentId,
@Nullable String searchTerm,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getAllEnvironmentVariables(Long environmentId) |
RestDeploymentResultList |
getDeploymentResultList(long environmentId,
String expandParam,
javax.ws.rs.core.UriInfo uriInfo) |
RestDockerPipelineConfiguration |
getDockerPipelinesConfiguration(long environmentId) |
RestEnvironmentWithConfigCounts |
getEnvironment(long environmentId) |
RestPageModel<RestEnvironmentForExecutablesView> |
getEnvironmentsExecutableByAgent(String filter,
long agentId,
PageRequest pageRequest,
javax.ws.rs.core.UriInfo uriInfo) |
RestPageModel<RestEnvironmentForExecutablesView> |
getEnvironmentsExecutableByElasticConfiguration(String filter,
Long configurationId,
PageRequest pageRequest,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getEnvironmentVariable(Long environmentId,
String variableName) |
javax.ws.rs.core.Response |
moveEnvironment(Long environmentId,
@Nullable String positionString,
Long relativeEnvironmentId) |
javax.ws.rs.core.Response |
removeAgentAssignmentFromEnvironment(long environmentId,
String executorKey) |
javax.ws.rs.core.Response |
saveDockerPipelinesConfiguration(long environmentId,
RestDockerPipelineConfiguration restDockerPipelineConfiguration) |
javax.ws.rs.core.Response |
updateEnvironmentVariable(Long environmentId,
String variableName,
@Nullable RestVariable variable) |
public DeploymentEnvironmentResource(AgentAssignmentService agentAssignmentService, AgentManager agentManager, EnvironmentService environmentService, EnvironmentCustomConfigService environmentCustomConfigService, DeploymentResultService deploymentResultService, DeploymentProjectService deploymentProjectService, com.atlassian.sal.api.message.I18nResolver i18nResolver, com.atlassian.event.api.EventPublisher eventPublisher, ElasticImageConfigurationManager elasticImageConfigurationManager, EnvironmentRequirementService environmentRequirementService, VariableDefinitionManager variableDefinitionManager, AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, VariableConfigurationService variableConfigurationService, AgentCapabilityService agentCapabilityService, LinkService linkService)
public RestEnvironmentWithConfigCounts getEnvironment(long environmentId)
public RestPageModel<RestEnvironmentForExecutablesView> getEnvironmentsExecutableByAgent(String filter, long agentId, @Context PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
public RestPageModel<RestEnvironmentForExecutablesView> getEnvironmentsExecutableByElasticConfiguration(String filter, Long configurationId, @Context PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
public RestDeploymentResultList getDeploymentResultList(long environmentId, String expandParam, @Context javax.ws.rs.core.UriInfo uriInfo)
public List<RestAgentAssignmentExecutorDetails> findAssignedAgentsByEnvironment(long environmentId)
public javax.ws.rs.core.Response findPossibleAgentsForEnvironment(long environmentId, @Nullable @Nullable String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo)
public RestAgentAssignmentExecutorDetails addAgentAssignmentForEnvironment(long environmentId, Map<String,String> agentAssignmentKey) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response removeAgentAssignmentFromEnvironment(long environmentId, String executorKey) throws WebValidationException
WebValidationException
public RestDockerPipelineConfiguration getDockerPipelinesConfiguration(long environmentId)
public javax.ws.rs.core.Response saveDockerPipelinesConfiguration(long environmentId, RestDockerPipelineConfiguration restDockerPipelineConfiguration)
public javax.ws.rs.core.Response moveEnvironment(Long environmentId, @Nullable @Nullable String positionString, Long relativeEnvironmentId) throws WebValidationException, NotFoundException
public javax.ws.rs.core.Response getAllEnvironmentVariables(Long environmentId)
public javax.ws.rs.core.Response getEnvironmentVariable(Long environmentId, String variableName)
public javax.ws.rs.core.Response createEnvironmentVariable(Long environmentId, @Nullable @Nullable RestVariable variable)
public javax.ws.rs.core.Response updateEnvironmentVariable(Long environmentId, String variableName, @Nullable @Nullable RestVariable variable)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.