Class BambooDeploymentImportResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.configuration.external.BambooDeploymentImportResource
@Path("/import/deployment")
@Consumes("application/x-yaml")
@Produces("application/json")
@Singleton
public class BambooDeploymentImportResource
extends Object
-
Constructor Summary
ConstructorDescriptionBambooDeploymentImportResource
(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, BambooAuthenticationContext authenticationContext, DeploymentImportService deploymentImportService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
importDeploymentPermission
(@NotNull String yaml, javax.ws.rs.core.HttpHeaders headers) Import configuration of deployment permission in YAML format.javax.ws.rs.core.Response
importDeploymentProject
(@NotNull String yamlString, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo) Import configuration of a deployment project in YAML format.javax.ws.rs.core.Response
importEnvironmentPermission
(@NotNull String yaml, javax.ws.rs.core.HttpHeaders headers) Import configuration of environment permission in YAML format.
-
Constructor Details
-
BambooDeploymentImportResource
@Inject public BambooDeploymentImportResource(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, BambooAuthenticationContext authenticationContext, DeploymentImportService deploymentImportService)
-
-
Method Details
-
importDeploymentProject
@POST public javax.ws.rs.core.Response importDeploymentProject(@NotNull @NotNull String yamlString, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException Import configuration of a deployment project in YAML format.- Throws:
WebValidationException
-
importDeploymentPermission
@POST @Path("permission") public javax.ws.rs.core.Response importDeploymentPermission(@NotNull @NotNull String yaml, @Context javax.ws.rs.core.HttpHeaders headers) throws WebValidationException Import configuration of deployment permission in YAML format.- Throws:
WebValidationException
-
importEnvironmentPermission
@POST @Path("environment/permission") public javax.ws.rs.core.Response importEnvironmentPermission(@NotNull @NotNull String yaml, @Context javax.ws.rs.core.HttpHeaders headers) throws WebValidationException Import configuration of environment permission in YAML format.- Throws:
WebValidationException
-