Class ElasticConfigResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.resource.ElasticConfigResource
-
public class ElasticConfigResource extends Object
-
-
Constructor Summary
Constructors Constructor Description ElasticConfigResource(ElasticImageConfigurationManager elasticImageConfigurationManager, ElasticAccountBean elasticAccountBean, AwsAccountBean awsAccountBean, RestHelperWrapper restHelperWrapper, AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestElasticImageConfig
createImageConfiguration(RestElasticImageConfig restConfiguration)
javax.ws.rs.core.Response
deleteConfiguration(Long configurationId)
List<RestElasticImageConfig>
getAll()
RestElasticImageConfig
getConfiguration(Long configurationId)
String
getDefaultAvailabilityZone()
int
updateAllImageIds(String imageId, String newImageId)
RestElasticImageConfig
updateConfiguration(Long configurationId, RestElasticImageConfig newElasticImageConfiguration)
-
-
-
Constructor Detail
-
ElasticConfigResource
public ElasticConfigResource(ElasticImageConfigurationManager elasticImageConfigurationManager, ElasticAccountBean elasticAccountBean, AwsAccountBean awsAccountBean, RestHelperWrapper restHelperWrapper, AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager)
-
-
Method Detail
-
getAll
public List<RestElasticImageConfig> getAll()
-
getConfiguration
public RestElasticImageConfig getConfiguration(Long configurationId) throws NotFoundException
- Throws:
NotFoundException
-
createImageConfiguration
public RestElasticImageConfig createImageConfiguration(RestElasticImageConfig restConfiguration) throws com.atlassian.aws.AWSException, WebValidationException
- Throws:
com.atlassian.aws.AWSException
WebValidationException
-
updateConfiguration
public RestElasticImageConfig updateConfiguration(Long configurationId, RestElasticImageConfig newElasticImageConfiguration) throws com.atlassian.aws.AWSException, WebValidationException
- Throws:
com.atlassian.aws.AWSException
WebValidationException
-
deleteConfiguration
public javax.ws.rs.core.Response deleteConfiguration(Long configurationId) throws Exception
- Throws:
Exception
-
getDefaultAvailabilityZone
public String getDefaultAvailabilityZone()
-
-