Class ElasticConfigResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.resource.ElasticConfigResource
@Path("elasticConfiguration")
@Consumes("application/json")
@Produces("application/json")
public class ElasticConfigResource
extends Object
-
Constructor Summary
ConstructorDescriptionElasticConfigResource
(ElasticImageConfigurationManager elasticImageConfigurationManager, ElasticAccountBean elasticAccountBean, AwsAccountBean awsAccountBean, RestHelperWrapper restHelperWrapper, AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager) -
Method Summary
Modifier and TypeMethodDescriptioncreateImageConfiguration
(RestElasticImageConfig restConfiguration) javax.ws.rs.core.Response
deleteConfiguration
(Long configurationId) getAll()
getConfiguration
(Long configurationId) static RestElasticImageConfig
toRestElasticImageConfig
(ElasticImageConfiguration configuration) int
updateAllImageIds
(String imageId, String newImageId) updateConfiguration
(Long configurationId, RestElasticImageConfig newElasticImageConfiguration)
-
Constructor Details
-
ElasticConfigResource
@Inject public ElasticConfigResource(ElasticImageConfigurationManager elasticImageConfigurationManager, ElasticAccountBean elasticAccountBean, AwsAccountBean awsAccountBean, RestHelperWrapper restHelperWrapper, AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager)
-
-
Method Details
-
getAll
-
getConfiguration
@GET @Path("/{configurationId}") public RestElasticImageConfig getConfiguration(@PathParam("configurationId") Long configurationId) throws NotFoundException - Throws:
NotFoundException
-
createImageConfiguration
@POST public RestElasticImageConfig createImageConfiguration(RestElasticImageConfig restConfiguration) throws com.atlassian.aws.AWSException, WebValidationException - Throws:
com.atlassian.aws.AWSException
WebValidationException
-
updateConfiguration
@PUT @Path("/{configurationId}") public RestElasticImageConfig updateConfiguration(@PathParam("configurationId") Long configurationId, RestElasticImageConfig newElasticImageConfiguration) throws com.atlassian.aws.AWSException, WebValidationException - Throws:
com.atlassian.aws.AWSException
WebValidationException
-
deleteConfiguration
@DELETE @Path("/{configurationId}") public javax.ws.rs.core.Response deleteConfiguration(@PathParam("configurationId") Long configurationId) throws Exception - Throws:
Exception
-
updateAllImageIds
-
getDefaultAvailabilityZone
-
toRestElasticImageConfig
public static RestElasticImageConfig toRestElasticImageConfig(ElasticImageConfiguration configuration)
-