Class DeploymentEnvironmentResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.deployments.environments.DeploymentEnvironmentResource
-
@Singleton public class DeploymentEnvironmentResource extends Object
-
-
Constructor Summary
Constructors Constructor 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, EphemeralAgentsService ephemeralAgentsService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
RestPageModel<RestEnvironmentForExecutablesView>
getEnvironmentsExecutableByEphemeralAgentTemplate(String filter, Long templateId, 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
updateEnvironmentPrerequisites(Long environmentId, @NotNull RestEnvironmentPrerequisites restEnvironmentPrerequisites)
javax.ws.rs.core.Response
updateEnvironmentVariable(Long environmentId, String variableName, @Nullable RestVariable variable)
-
-
-
Constructor Detail
-
DeploymentEnvironmentResource
@Inject 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, EphemeralAgentsService ephemeralAgentsService)
-
-
Method Detail
-
getEnvironment
public RestEnvironmentWithConfigCounts getEnvironment(long environmentId)
-
getEnvironmentsExecutableByAgent
public RestPageModel<RestEnvironmentForExecutablesView> getEnvironmentsExecutableByAgent(String filter, long agentId, @Context PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
-
getEnvironmentsExecutableByElasticConfiguration
public RestPageModel<RestEnvironmentForExecutablesView> getEnvironmentsExecutableByElasticConfiguration(String filter, Long configurationId, @Context PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
-
getEnvironmentsExecutableByEphemeralAgentTemplate
public RestPageModel<RestEnvironmentForExecutablesView> getEnvironmentsExecutableByEphemeralAgentTemplate(String filter, Long templateId, @Context PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
-
getDeploymentResultList
public RestDeploymentResultList getDeploymentResultList(long environmentId, String expandParam, @Context javax.ws.rs.core.UriInfo uriInfo)
-
findAssignedAgentsByEnvironment
public List<RestAgentAssignmentExecutorDetails> findAssignedAgentsByEnvironment(long environmentId)
-
findPossibleAgentsForEnvironment
public javax.ws.rs.core.Response findPossibleAgentsForEnvironment(long environmentId, @Nullable @Nullable String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo)
-
addAgentAssignmentForEnvironment
public RestAgentAssignmentExecutorDetails addAgentAssignmentForEnvironment(long environmentId, Map<String,String> agentAssignmentKey) throws WebValidationException
- Throws:
WebValidationException
-
removeAgentAssignmentFromEnvironment
public javax.ws.rs.core.Response removeAgentAssignmentFromEnvironment(long environmentId, String executorKey) throws WebValidationException
- Throws:
WebValidationException
-
getDockerPipelinesConfiguration
public RestDockerPipelineConfiguration getDockerPipelinesConfiguration(long environmentId)
-
saveDockerPipelinesConfiguration
public javax.ws.rs.core.Response saveDockerPipelinesConfiguration(long environmentId, RestDockerPipelineConfiguration restDockerPipelineConfiguration)
-
moveEnvironment
public javax.ws.rs.core.Response moveEnvironment(Long environmentId, @Nullable @Nullable String positionString, Long relativeEnvironmentId) throws WebValidationException, NotFoundException
-
getAllEnvironmentVariables
public javax.ws.rs.core.Response getAllEnvironmentVariables(Long environmentId)
-
getEnvironmentVariable
public javax.ws.rs.core.Response getEnvironmentVariable(Long environmentId, String variableName)
-
createEnvironmentVariable
public javax.ws.rs.core.Response createEnvironmentVariable(Long environmentId, @Nullable @Nullable RestVariable variable)
-
updateEnvironmentVariable
public javax.ws.rs.core.Response updateEnvironmentVariable(Long environmentId, String variableName, @Nullable @Nullable RestVariable variable)
-
deleteEnvironmentVariable
public javax.ws.rs.core.Response deleteEnvironmentVariable(Long environmentId, String variableName)
-
updateEnvironmentPrerequisites
public javax.ws.rs.core.Response updateEnvironmentPrerequisites(Long environmentId, @NotNull @NotNull RestEnvironmentPrerequisites restEnvironmentPrerequisites)
-
-